IBM-Main is not the likely forum for this - and a more appropriate forum would be appreciated - but is there a z/OS batch utility that creates an XML "Optimized Schema Representation" (OSR) file from a text-based XML schema file? Enterprise COBOL supports XML schema, but only if it is in OSR format. OK - fine. But apparently the only way to create an OSR file is by using C, Unix, or Java. No utilities or assembler-language methods seem to exist.
>From the Enterprise COBOL for zOS Programming Guide Ver 4 Rel 2 August 2009 >SC23-8529-01, Page 515: "You can validate XML documents only against an XML schema. In Enterprise COBOL, a schema used for XML validation must be in a preprocessed format known as Optimized Schema Representation, or OSR. To generate a schema in OSR format from a text-form schema, use the z/OS UNIX command xsdosrg, which invokes the OSR generator provided by z/OS System Services. (Alternatively, you can call the OSR generator programmatically. For details, see the related reference about z/OS XML System Services.)" >From the z/OS XML System Services User's Guide and Reference Version 2 Release >1 2015 SA38-0681-01 gxl3z101.pdf Page 98: "gxluGenOSR - generate an Optimized Schema Representation (OSR) Description: This utility generates an optimized representation of one or more XML schemas." The manual then lists a Java program to create an OSR file (no assembler). >From the same manual, page 217: "In addition, there are a set of utility services to generate Optimized Schema Representations (OSRs) from text schemas. These utility services are implemented in Language Environment C/C++ and Java. As a result, there are Language Environment C/C++ headers that have no corresponding assembler macro or Metal C version." Looks like C, Java, and Unix are the only IBM-supplied methods available to create an OSR for use by Enterprise COBOL. Perhaps I missed something. Richard Zierdt ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
