IBM Support

PH65540: Error analyzing programs using copybooks compiled with COBOL 6.3 due to error message CQI5035W

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error analyzing programs using copybooks compiled with COBOL 6.3
    due to error message CQI5035W
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Z Code Optimization Advice          *
    *                 analyzing programs that contain two or more  *
    *                 copybooks that are members of the same       *
    *                 dataset, where the programs are compiled     *
    *                 with the July 2024 6.3 PTF (UI92725).        *
    ****************************************************************
    * PROBLEM DESCRIPTION: Analysis is limited for some programs   *
    *                      and message "MSGCQI5035W: ADATA for     *
    *                      program XXXXX has inaccurate copybook   *
    *                      information due to an Enterprise COBOL  *
    *                      compiler issue. Programs must be        *
    *                      recompiled after applying a PTF         *
    *                      containing APAR PH61501                 *
    *                      (July 2024 PTF or later)" is given.     *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF                       *
    ****************************************************************
    Enterprise COBOL versions 6.2 through 6.4 all had an issue
    where if multiple copybooks are members of the same dataset,
    the ADATA records produced by the compiler gave every such
    copybook the same member ID. This meant that in other ADATA
    records that used a member ID, ADATA consumers wouldn't be able
    to tell which copybook was which. The compiler fixed the issue,
    and Z Code Optimization Advice produced the CQI5035W message
    above to indicate that clients should recompile programs with a
    more recent PTF that contained the fix. For programs compiled
    with older COBOL 6.3 PTFs (and also 6.2 and 6.4), this remains
    true.
    Z Code Optimization Advice checks the PTF version in the ADATA
    to determine if a program compiled with Enterprise COBOL 6.2
    through 6.4 was compiled with a PTF containing the above fix.
    For COBOL 6.3, Z Code Optimization Advice was looking for a PTF
    date of July 1st, 2024, or later. However, the July 2024 PTF for
    6.3 was actually built on June 28th, so the version check
    failed, even though the July 2024 PTF did contain the fix for
    the above copybook issue.
    

Problem conclusion

  • The compiler was fixed to check for a COBOL 6.3 PTF date of
    June 28th or later before reporting that the 6.3 compiler used
    to compile a program contained the copybook bug.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH65540

  • Reported component name

    CODE OPT ADVICE

  • Reported component ID

    5900B4M04

  • Reported release

    210

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2025-03-05

  • Closed date

    2025-03-11

  • Last modified date

    2025-04-02

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

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

Modules/Macros

  • CQIALC   CQIBE    CQIBXITA CQICONFG CQIINI1  CQIINI2  CQIINI3
    CQIINIJ1 CQIINIJ2 CQIINIJ3 CQIINIT  CQIINITJ CQIIVPE  CQIIVPJ
    CQIIVPS1 CQIIVPS2 CQIMSGE  CQIMSGK  CQIMSGT  CQIRIDT
    

Fix information

  • Fixed component name

    CODE OPT ADVICE

  • Fixed component ID

    5900B4M04

Applicable component levels

  • R210 PSY UO02407

       UP25/03/25 P F503

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":"BU048","label":"IBM Software"},"Product":{"code":"SSK5UBS","label":"IBM watsonx Code Assistant for Z"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"210","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Document Information

Modified date:
02 October 2025