Skip to main content

Problem:

Server Express includes example COBOL programs in the XML tutorial, as described in the documentation.  When a person follows the directions in the tutorial, program "customerdbxml.cbl" may not compile.  A long list of compiler errors may appear, where the first error is actually the cause of the rest.  The first error message might be either:

17 working-storage section.

* 803-S*******************                                                   **

**    Integrated preprocessor message

**    Bad format of COPY statement - COPY ignored

Or:

    13 fd customer-file.

*  12-S****************                                                      **

**    Operand CUSTOMER-FILE is not declared

Resolution:

The documentation explains how program "customerdbxml.cbl" must be edited and modified by the customer.  There are some typos in the documentation that can lead to these compiler errors.

The "Bad format of COPY statement" error will occur if there is no period at the end of the copy statement:

copy "customer-xml.cpy".

In one place the docs show a period after this copy statement, but in another place they show no period.  Putting a period at the end will fix this compiler error.

The "Operand CUSTOMER-FILE is not declared" error is caused by forgetting to change "fd" to "xd".  In one place the docs show that this change should be made, but in another place, under the heading:

"After making these coding changes, customerdbxml.cbl should look like this:"

The "fd" is not shown changed as it should be.  Changing it to "xd" solves the error.

Old KB# 3713