Skip to main content

Using RM/Cobol 12.08 on Linux (RHEL 2.6...).  Getting started here using XML Extensions. Just started working through examples in Users Guide. Getting the following error when running sample program trying to export the data record, CUSTOMER-ADDRESS, to XML. Though it might be an issue with differences in case between record name, program name and parameters passed to the EXPORT command but have tried the various permutations with no success. What is wrong here?

Code:

   559                   *
   561    000078>0<           CALL "XMLExportFile" GIVING XML-Status USING
   562                            CUSTOMER-ADDRESS
   563                            "address"
   564                            "get-started#customer-address"
   565                        .
   566                   *
   567    000110              IF  NOT XML-OK
   568                            GO TO Z000-ERRORS.
   569                   *
   570    000126              GOBACK
   571                        .

Results:

Status: 0020
Error: 20[0] - in function: GetRootNode
Called from line 561 in GET-STARTED(/u/home/dsalazar/work/get-started.cob), com\\
piled 2014/02/19 13:19:56.

COBOL STOP RUN at line 600 in program GET-STARTED (/u/home/dsalazar/work/get-st
arted.cob).

Using RM/Cobol 12.08 on Linux (RHEL 2.6...).  Getting started here using XML Extensions. Just started working through examples in Users Guide. Getting the following error when running sample program trying to export the data record, CUSTOMER-ADDRESS, to XML. Though it might be an issue with differences in case between record name, program name and parameters passed to the EXPORT command but have tried the various permutations with no success. What is wrong here?

Code:

   559                   *
   561    000078>0<           CALL "XMLExportFile" GIVING XML-Status USING
   562                            CUSTOMER-ADDRESS
   563                            "address"
   564                            "get-started#customer-address"
   565                        .
   566                   *
   567    000110              IF  NOT XML-OK
   568                            GO TO Z000-ERRORS.
   569                   *
   570    000126              GOBACK
   571                        .

Results:

Status: 0020
Error: 20[0] - in function: GetRootNode
Called from line 561 in GET-STARTED(/u/home/dsalazar/work/get-started.cob), com\\
piled 2014/02/19 13:19:56.

COBOL STOP RUN at line 600 in program GET-STARTED (/u/home/dsalazar/work/get-st
arted.cob).

Hi David,

It is not an issue with case.

For the third USING parameter have you tried simply "customer-address"?

Have you installed the XML Extensions license?

Best regards,
Tom Morrison
Hill Country Software


Using RM/Cobol 12.08 on Linux (RHEL 2.6...).  Getting started here using XML Extensions. Just started working through examples in Users Guide. Getting the following error when running sample program trying to export the data record, CUSTOMER-ADDRESS, to XML. Though it might be an issue with differences in case between record name, program name and parameters passed to the EXPORT command but have tried the various permutations with no success. What is wrong here?

Code:

   559                   *
   561    000078>0<           CALL "XMLExportFile" GIVING XML-Status USING
   562                            CUSTOMER-ADDRESS
   563                            "address"
   564                            "get-started#customer-address"
   565                        .
   566                   *
   567    000110              IF  NOT XML-OK
   568                            GO TO Z000-ERRORS.
   569                   *
   570    000126              GOBACK
   571                        .

Results:

Status: 0020
Error: 20[0] - in function: GetRootNode
Called from line 561 in GET-STARTED(/u/home/dsalazar/work/get-started.cob), com\\
piled 2014/02/19 13:19:56.

COBOL STOP RUN at line 600 in program GET-STARTED (/u/home/dsalazar/work/get-st
arted.cob).

Tom,

Just tried using just "customer-address" for third parameter with no success.  I'll assume for now that the issue is that the XML Extensions license is not installed.  Am waiting to for sysadmin responsible for our MF products to come out of a meeting to check on this, but since program was not terminating with errors at first XML call (XML INITIALIZE), I was hoping that we were all set there.

Thanks for the suggestion.  Will post back here once I find out definitively if the license is installed or not.

Regards,

David


Using RM/Cobol 12.08 on Linux (RHEL 2.6...).  Getting started here using XML Extensions. Just started working through examples in Users Guide. Getting the following error when running sample program trying to export the data record, CUSTOMER-ADDRESS, to XML. Though it might be an issue with differences in case between record name, program name and parameters passed to the EXPORT command but have tried the various permutations with no success. What is wrong here?

Code:

   559                   *
   561    000078>0<           CALL "XMLExportFile" GIVING XML-Status USING
   562                            CUSTOMER-ADDRESS
   563                            "address"
   564                            "get-started#customer-address"
   565                        .
   566                   *
   567    000110              IF  NOT XML-OK
   568                            GO TO Z000-ERRORS.
   569                   *
   570    000126              GOBACK
   571                        .

Results:

Status: 0020
Error: 20[0] - in function: GetRootNode
Called from line 561 in GET-STARTED(/u/home/dsalazar/work/get-started.cob), com\\
piled 2014/02/19 13:19:56.

COBOL STOP RUN at line 600 in program GET-STARTED (/u/home/dsalazar/work/get-st
arted.cob).

David,

The XML Extensions license is a compiler license.  It controls the availability of the information that supports XML Extensions within the RM/COBOL object file.  You should be able to check at the end of the listing.  Here is a sample from one of my recent compilations:

Options in effect:
    A - Allocation map listing
    C - C=2 Suppress replaced lines in listing (default)
    G - G configuration file "C:\\************************"
    O - Object path specification "C:\\********************
    SUPPRESS-XML-SYMBOL-TABLE = YES configured
    XML compiler (licensed for use with XML Extensions)

(Note that I am suppressing the symbol table in the compilations of modules that do not require XML in order to reduce the size of my deployed application.  That's a lot of bytes in a big application such as ours.)

Tom


Using RM/Cobol 12.08 on Linux (RHEL 2.6...).  Getting started here using XML Extensions. Just started working through examples in Users Guide. Getting the following error when running sample program trying to export the data record, CUSTOMER-ADDRESS, to XML. Though it might be an issue with differences in case between record name, program name and parameters passed to the EXPORT command but have tried the various permutations with no success. What is wrong here?

Code:

   559                   *
   561    000078>0<           CALL "XMLExportFile" GIVING XML-Status USING
   562                            CUSTOMER-ADDRESS
   563                            "address"
   564                            "get-started#customer-address"
   565                        .
   566                   *
   567    000110              IF  NOT XML-OK
   568                            GO TO Z000-ERRORS.
   569                   *
   570    000126              GOBACK
   571                        .

Results:

Status: 0020
Error: 20[0] - in function: GetRootNode
Called from line 561 in GET-STARTED(/u/home/dsalazar/work/get-started.cob), com\\
piled 2014/02/19 13:19:56.

COBOL STOP RUN at line 600 in program GET-STARTED (/u/home/dsalazar/work/get-st
arted.cob).

Duh!  Culprit confirmed.  Nothing about XML under the "Options in effect:"  section of the compile listing.  I should have known. I am loading the SUPPRESS-XML-SYMBOL-TABLE=NO compiler option via supplemental options and thought it was odd that it didn't seem to make any difference. Listing does show that supplemental options were read, but no confirmation about what they were. I also remember reading in the doc that the license was for the compiler not the runtime. So I should have made the connection about no errors from the XML INITIALIZE.  Wish I could say that more coffee would have solved this issue, but not this time! :)

Ok, will get my admin to request the XML license from MF support.

Thanks again!

David