IBM Support

PH23443: THE INITCHECK COMPILER OPTION INCORRECTLY FLAGS A LINKAGE DATA ITEM THAT IS MOVED TO THE LOCAL-STORAGE SECTION

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • INITCHECK is incorrectly catching (twice) a move from the
    LINKAGE section to the LOCAL-STORAGE section and reporting that
    it is uninitialized.
    
    Sample Code:
    
    000001              IDENTIFICATION DIVISION.
    000002              PROGRAM-ID. X80573.
    000003              DATA DIVISION.
    000004              LOCAL-STORAGE SECTION.
    000005              01 WORKING-FIELDS.
    000006                 10 W-OPTION               PIC X(4).
    000007                     88 W-UPDATE            VALUE 'UPDT'.
    000008                     88 W-LIST              VALUE 'LIST'.
    000009              LINKAGE SECTION.
    000010              01 LINKAGE-FIELDS.
    000011                05 LK-OPTION    PIC X(4).
    000012              PROCEDURE DIVISION USING LINKAGE-FIELDS.
    000013              AA000-HOUSEKEEPING SECTION.
    000014                  MOVE LK-OPTION TO W-OPTION.
    000015                  GOBACK.
    
    The compiler returns:
    14 IGYCB7311-W The data item 'W-OPTION' may be used at this
                   statement before it is set.
                   Same message on line:   14
    

Local fix

  • Compile with NOINITCHECK.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of Enterprise COBOL V6.2 compiling     *
    *                 programs with INITCHECK that MOVE data from  *
    *                 a sender in the LINKAGE SECTION to a         *
    *                 receiver in WORKING-STORAGE or               *
    *                 LOCAL-STORAGE where the receiver is          *
    *                 uninitialized before the MOVE.               *
    ****************************************************************
    * PROBLEM DESCRIPTION: The compiler incorrectly issues message *
    *                      MSGIGYCB7311-W The data item 'XXXXX'    *
    *                      may be used at this statement before    *
    *                      it is set. for the receiver.            *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    ****************************************************************
    The compiler's internal state incorrectly indicated that
    receivers of a MOVE statement with a LINKAGE SECTION sender
    should be considered when determining which data items were not
    initialized.
    

Problem conclusion

  • The compiler was corrected to ignore receivers of MOVE
    statements with LINKAGE SECTION senders when determining which
    data items were not initialized.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH23443

  • Reported component name

    ENT COBOL FOR Z

  • Reported component ID

    5655EC600

  • Reported release

    620

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2020-03-18

  • Closed date

    2020-04-21

  • Last modified date

    2020-05-08

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

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

    PH24417 PH25226

Modules/Macros

  • IGY8RWTU IGYCASMB IGYCCBE  IGYCCCRT IGYCCICS IGYCCSRV IGYCDGEN
    IGYCDIAG IGYCDMAP IGYCEN$0 IGYCEN$1 IGYCEN$2 IGYCEN$3 IGYCEN$4
    IGYCEN$5 IGYCEN$8 IGYCEN$D IGYCEN$R IGYCFGEN IGYCFREE IGYCINIT
    IGYCJA$0 IGYCJA$1 IGYCJA$2 IGYCJA$3 IGYCJA$4 IGYCJA$5 IGYCJA$8
    IGYCJA$D IGYCJA$R IGYCLIBH IGYCLIBO IGYCLIBR IGYCLSTR IGYCLVL0
    IGYCLVL1 IGYCLVL2 IGYCLVL3 IGYCLVL8 IGYCMALL IGYCOPI  IGYCOSCN
    IGYCPGEN IGYCRCTL IGYCRDPR IGYCRDSC IGYCREAL IGYCRWT  IGYCSCAN
    IGYCSIMD IGYCUE$0 IGYCUE$1 IGYCUE$2 IGYCUE$3 IGYCUE$4 IGYCUE$5
    IGYCUE$8 IGYCUE$D IGYCUE$R IGYCXREF IGYDRV   IGYEQCWI IGYMSGE
    IGYMSGK  IGYMSGT  IGYQCBE  IGYZQDRV IGYZQENU IGYZQJPN
    

Fix information

  • Fixed component name

    ENT COBOL FOR Z

  • Fixed component ID

    5655EC600

Applicable component levels

  • R620 PSY UI69122

       UP20/04/25 P F004

  • R621 PSY UI69123

       UP20/04/25 P F004

  • R622 PSY UI69124

       UP20/04/25 P F004

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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]

Document Information

Modified date:
12 December 2023