Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

D.XMLCOPY

D.XMLCOPY generates an XML description of the data structures defined in a COBOL COPY element on the basis of the corresponding COPY element.

You start D.XMLCOPY with the command CALL-PROCEDURE as follows:

CALL-PROC
FROM-FILE=*LIBRARY-ELEMENT(LIBRARY=COB2XML.LIB,ELEM=D.XMLCOPY)
,PROCEDURE-PARAMETERS=(
LIB=<cobol_lib>,
ELEM=<cobol_copy>,
[XMLOUT=<output_file>,] 
[COBRUN=<compiler_options>] )

Description of the parameters:

LIB=<cobol_lib>, ELEM=<cobol_copy>

The COBOL COPY element from whose data structures an XML description is to be generated is available as the element <cobol_copy> 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.<cobol_copy>.XML where <cobol_copy> stands for the name of the COPY element.

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.