Skip to main content

XML Processing, many error messages starting with organization is XML

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Compiling an XML program result in many error messages,

which start with:

     6                      organization is XML

* 131-S****************************************                              **

**    Unrecognized phrase in SELECT clause

Resolution:

1. The XML-preprocessor has to be used to compile the program:

      $set p(prexml) endp

MF COBOL versions before Server Express 4.0 or Net Express 4.0 cannot compile this program.

Hint: you can review the XML-preprocessor output by adding the o(filename) option, e.g.

$set p(prexml) o(ppoutput.cob) endp

to get the output into the file ppoutput.cob

2. If your SELECT statement contains a syntax error, the XML-preprocessor may not give an error message but ignore the SELECT statement as non-XML related part of the program.

The COBOL syntax checker then will report the above given error message, which in this case was caused by a typo: the word "file-status".

Writing it correct as two words "file status" solved the problem.

Old KB# 4534