To generate a schema in the OSR format from a text-form schema, use the z/OS UNIX command xsdosrg, which invokes the OSR generator provided by z/OS System Service.
For example, to convert the text-form schema in the stock.xsd file to a schema in preprocessed format in the stock.osr file, you can use the following z/OS UNIX command:
xsdosrg -v -o /u/HLQ/xml/stock.osr /u/HLQ/xml/stock.xsd
where /u/HLQ/xml/ is the directory in which the stock.osr and stock.xsd files are located.
If you want to copy the generated OSR file into a PDS, use the z/OS UNIX cp command. To specify an MVS data set name, precede the name with double slashes (//). For example, to copy the HFS file stock.osr into a fixed block record format PDS called HLQ.XML.OSR with record length 80, you can use the following command:
cp -p /u/HLQ/xml/stock.osr "//'HLQ.XML.OSR(STOCK)'"
To omit the fully qualified name of the PDS, you can eliminate the single quotation mark in the cp statement such as:
cp -p /u/HLQ/xml/stock.osr "//XML.OSR(STOCK)"
For more information, see the related reference in XML System Services User's Guide and Reference.