oldcoderunner
Programmer
We have recently installed Enterprise COBOL for Z/OS and I have been exploring the XML commands PARSE and GENERATE.
Whilst I have successfully used the PARSE command I have been unable to get the GENERATE command to work even on a most basic example. See below;
01 WA-ACCUMULATORS.
03 WA-NUMCHARS PIC 9(3).
01 WW-XML-DOCUMENT PIC X(999).
01 WW-CMPY-N PIC X(3).
MOVE '001' TO WW-CMPY-N
MOVE SPACES TO WW-XML-DOCUMENT
XML GENERATE WW-XML-DOCUMENT FROM WW-CMPY-N
COUNT IN WA-NUMCHARS
This returns an XML-CODE = 0175115059 (which is undocumented)
and WA-NUMCHARS = 0
Has anybody any suggestions?
Whilst I have successfully used the PARSE command I have been unable to get the GENERATE command to work even on a most basic example. See below;
01 WA-ACCUMULATORS.
03 WA-NUMCHARS PIC 9(3).
01 WW-XML-DOCUMENT PIC X(999).
01 WW-CMPY-N PIC X(3).
MOVE '001' TO WW-CMPY-N
MOVE SPACES TO WW-XML-DOCUMENT
XML GENERATE WW-XML-DOCUMENT FROM WW-CMPY-N
COUNT IN WA-NUMCHARS
This returns an XML-CODE = 0175115059 (which is undocumented)
and WA-NUMCHARS = 0
Has anybody any suggestions?