IBM Support

PI83806: RDZ 9.5.1.4, SOFTWARE ANALYSIS IN BATCH FOR APPLICATIONS WITH SYNTAX ERROR RESULT IN RETURN CODE OF 0

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • In Rational Developer for z (RDz) v9.5.1.4, running the software
    analysis in batch for applications with a syntax error results
    in return code of 0 instead of return code of 8. For example
    looking at the job output the following can be seen:
             . RegistrationUtils.getVersionString() : Returning
    version v9.5.1.4
             . COBOL Code Review analyzing resource 1 of 1 -
    /USER.TEST.COBOL/ABC01.cbl
             . Syntax Error?ABC01.cbl
             . 25: "ERROR_TOKEN"
             . Result count = 0       <---- incorrect return code
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: 01.Users of headless code review             *
    *                    application for z/OS                      *
    *                 02.Users of headless code review             *
    *                    application for z/OS                      *
    *                 03.Users of headless code review             *
    *                    application for z/OS                      *
    *                 04.Users of headless code review             *
    *                    application for z/OS                      *
    *                 05.Users of headless code review             *
    *                    application for z/OS                      *
    *                 06.Users of headless code review             *
    *                    application for z/OS                      *
    *                 07.Users of headless code review             *
    *                    application for z/OS                      *
    *                 08.Users of headless code review             *
    *                    application for z/OS                      *
    *                 09.Users of headless code review             *
    *                    application for z/OS                      *
    *                 10.Users of headless code review             *
    *                    application for z/OS                      *
    *                 11.Users of headless code review             *
    *                    application for z/OS                      *
    *                 12.Users of headless code review             *
    *                    application for z/OS                      *
    *                 13.Users of headless code review             *
    *                    application for z/OS                      *
    *                 14.Users of headless code review             *
    *                    application for z/OS                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: 01.Class conditions surrounded by       *
    *                         parentheses caused syntax errors.    *
    *                      02.The IDz COBOL parser does not        *
    *                         tolerate ENTER statements.           *
    *                      03.The RDz PL/I parser did not          *
    *                         automatically resolve the built-in   *
    *                         CICS data declarations.              *
    *                      04.Continuation characters weren't      *
    *                         handled properly by the RDz parser.  *
    *                      05.RDz's SQL parser incorrectly         *
    *                         handles qualified PL/I references.   *
    *                      06.The code review application for      *
    *                         z/OS execution time for large copy   *
    *                         libraries is significantly longer    *
    *                         than for small copy libraries.       *
    *                      07.Custom COBOL code review rules       *
    *                         reports insufficient error           *
    *                         information when populating the      *
    *                         COBOL Application Model.             *
    *                      08.The RDz PL/I parser is unable to     *
    *                         handle certain macro language        *
    *                         features such as empty macro         *
    *                         procedure call arguments.            *
    *                      09.Headless batch code review ignores   *
    *                         syntax errors.                       *
    *                      10.The PL/I custom rule API has no way  *
    *                         to identify EXEC SQL INCLUDE SQLCA   *
    *                         statements in a program.             *
    *                      11.The IDz custom rules for software    *
    *                         analyzer incorrectly populated the   *
    *                         COBOL Application Model when         *
    *                         programs contained implicitly        *
    *                         declared data (for example, SQL      *
    *                         CLOB's), leading to CRRZV0204E and   *
    *                         CRRZV0207E errors.                   *
    *                      12.An inline PERFORM statement cannot   *
    *                         exceed the specified line number     *
    *                         limit" code review rule can          *
    *                         miscount the number of lines in an   *
    *                         inline PERFORM.                      *
    *                      13.RDz's PL/I parser incorrectly        *
    *                         handles complex EDIT clauses.        *
    *                      14.The PL/I parser incorrectly formed   *
    *                         symbols for handles to complex       *
    *                         structures.                          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    01.Class conditions surrounded by parentheses caused syntax
       errors.
    02.The IDz COBOL parser does not tolerate ENTER statements.
    03.The RDz PL/I parser did not automatically resolve the
       built-in CICS data declarations.
    04.Continuation characters weren't handled properly by the RDz
       parser.
    05.RDz's SQL parser incorrectly handles qualified PL/I
       references.
    06.The code review application for z/OS execution time for
       large copy libraries is significantly longer than for small
       copy libraries.
    07.Custom COBOL code review rules reports insufficient error
       information when populating the COBOL Application Model.
    08.The RDz PL/I parser is unable to handle certain macro
       language features such as empty macro procedure call
       arguments.
    09.Headless batch code review ignores syntax errors.
    10.The PL/I custom rule API has no way to identify EXEC SQL
       INCLUDE SQLCA statements in a program.
    11.The IDz custom rules for software analyzer incorrectly
       populated the COBOL Application Model when programs
       contained implicitly declared data (for example, SQL
       CLOB's), leading to CRRZV0204E and CRRZV0207E errors.
    12.An inline PERFORM statement cannot exceed the specified line
       number limit" code review rule can miscount the number of
       lines in an inline PERFORM.
    13.RDz's PL/I parser incorrectly handles complex EDIT clauses.
    14.The PL/I parser incorrectly formed symbols for handles to
       complex structures.
    

Problem conclusion

  • 01.Modified parser to support class conditions surrounded by
       parentheses.
    02.Modified the COBOL parser to tolerate ENTER statements.
    03.Modified the PL/I parser to automatically resolve the
       built-in CICS data declarations.
    04.Modified the parser to properly handle continuation
       characters.
    05.Modified SQL parser to correctly handle qualified PL/I
       references.
    06.Modified the code that searches copy libraries for copy
       books to cache the location of copybooks that are found,
       reducing the amount of searching that the application needs
       to do.
    07.Modified the error reporting for population of the COBOL
       Application Model to supply file and line information for
       errors.
    08.Modified the PL/I parser to support missing macro language
       features.
    09.Modified headless batch code review to return RC 8 when a
       syntax error is encountered.
    10.Modified the PL/I custom rule API to support a way to
       identify INCLUDE statements in a program.
    11.Modified the COBOL Application Model population code to
       correctly handle implicitly declared data items.
    12.Modified the rule so that it correctly counts the lines in
       an inline PERFORM.
    13.Modified the parser to correctly handle complex EDIT
       clauses.
    14.Modified the PL/I parser to correctly form symbols for
       handles to complex structures.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI83806

  • Reported component name

    ID/Z UTILITIES

  • Reported component ID

    5724T0733

  • Reported release

    951

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-06-29

  • Closed date

    2017-11-29

  • Last modified date

    2017-12-01

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UI52252

Modules/Macros

  • AKGXCR01 AKGXCR02 AKGXCR03
    

Fix information

  • Fixed component name

    ID/Z UTILITIES

  • Fixed component ID

    5724T0733

Applicable component levels

  • R951 PSY UI52252

       UP17/12/01 I 1000

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSQ2R2","label":"Rational Developer for System z"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"951","Line of Business":{"code":"LOB17","label":"Mainframe TPS"}}]

Document Information

Modified date:
19 October 2021