D.XMLPROG
generates an XML description of the data structures used in a COBOL program on the basis of the corresponding program source.
Start D.XMLPROG
with the command CALL-PROCEDURE
as follows:
CALL-PROC FROM-FILE=*LIBRARY-ELEMENT(LIBRARY=COB2XML.LIB,ELEM=D.XMLPROG) ,PROCEDURE-PARAMETERS=( {SRC=FILE,TSTNAM=<cobol_source>|SRC=LIB,LIB=<cobol_lib>, TSTNAM=<cobol_source>}, [XMLOUT=<ouptput_file>,] [COBRUN=<compiler_options>] )
Description of the parameters:
SRC=FILE,TSTNAM=<cobol_source>
The COBOL program from whose data structures an XML description is to be generated can be found in the file <cobol_source>.
SRC=LIB,LIB=<cobol_lib>, TSTNAM=<cobol_source>
The COBOL program from whose data structures an XML description is to be generated can be found in the element <cobol_source>
in the LMS library <cobol_lib>.
XMLOUT=<output_file>
Name of the file to which the data structures are written in XML format. The name must have the suffix .xml
. If this parameter is not specified and the link name XMLLINK
is not defined then the XML description is written to the file XMLFIL.COBOL.<progID>.XML
where <progID>
stands for the program name defined in PROGRAM-ID.
COBRUN=<compiler_options>
Specification of compiler options in the form of a string of maximum 121 characters. You separate the individual options with commas. You can specify, for example:
COMMENT=YES/NO
Comment lines are not output if the option COMMENT=NO
is set.
DTD=YES/NO
The reference to the Document Type Definition is not output if the option DTD=NO
is set.