The following tables show COBOL statements that relate to performing XML Extensions statements. Some COBOL statements (mostly the DISPLAY statements) have been omitted. The source of this example is in the file, example07.cbl.
COBOL Statement |
Description |
---|---|
XML INITIALIZE. |
Execute the XML INITIALIZE statement (no parameters). |
If Not XML-OK Go To Z. |
If the statement terminates unsuccessfully, go to the termination logic. |
COBOL Statement |
Description |
---|---|
Move … To Time-Stamp. |
Populate the Time-Stamp field. |
XML EXPORT FILE Address-Struct "address07" "Address-Struct". |
Execute the XML EXPORT FILE statement specifying: the data item address, the XML document filename, and the ModelFileName#DataName parameter value. |
If Not XML-OK Go To Z. |
If the statement terminates unsuccessfully, go to the termination logic. |
COBOL Statement |
Description |
---|---|
XML TEST WELLFORMED-FILE "address07". |
Execute the XML TEST WELLFORMED-FILE statement specifying the XML document filename. |
If Not XML-OK Go To Z. |
If the statement terminates unsuccessfully, go to the termination logic. |
COBOL Statement |
Description |
---|---|
XML VALIDATE FILE "address07" "example07". |
Execute the XML VALIDATE FILE statement specifying: the XML document filename and the ModelFileName#DataName parameter value. |
If Not XML-OK Go To Z. |
If the statement terminates unsuccessfully, go to the termination logic. |
Same as example 1.
Same as example 1.
Same as example 1.