In this COBOL system, use the XML-Status-Edited data item to display the status result of an XML Extensions statement execution.
In RM/COBOL, XML-Status, the data item used to display the status result of an XML Extensions statement execution, is defined
as Display Usage. In this COBOL system, XML-Status is defined as:
03 XML-Status PIC S9(4) COMP-5.
Therefore, an additional declaration is made in
lixmldef.cpy, so that you can easily use the status result in your code:
03 XML-Status-Edited PIC +9(4).
When an XML Extensions statement is executed, the value of XML-Status-Edited is not set, so you need move XML-Status to XML-Status-Edited
before you can use the result.