IBM Support

PI58412: INSPECT STATEMENT WITH MULTIPLE CONVERTING PHASES GENERATES INVALID CODE.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When the CONVERTING phases are naming the same character in the
    'from' side, the behavior with Enterprise COBOL V5.x is not the
    same as with pre V5.x compilers.
    
    The problem affects Enterprise COBOL V5.x users who are using
    INSPECT statement with more then one CONVERTING phases.
    

Local fix

  • Avoid multiple CONVERTING phases in an INSPECT where the 'from'
    characters are the same.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Enterprise COBOL V5.1, V5.2 and V6.1 users   *
    *                 compiling and running programs that contain  *
    *                 INSPECT statements with more than 1          *
    *                 CONVERTING phrase.                           *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Migration/compatibility: When the       *
    *                      converting phrases are naming the same  *
    *                      character in the 'from' side, the       *
    *                      behavior with Enterprise COBOL V5+ is   *
    *                      not the same as pre V5.                 *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION: Apply the provided PTF.                      *
    ****************************************************************
    The V5 INSPECT ... CONVERTING behavior is changed to match V4.
    

Problem conclusion

  • The COBOL runtime was changed so that the INSPECT behavior is
    now compatible with pre-COBOL V5 compilers, when a duplicate
    character is found then the FIRST character encountered is used
    as the converting character and the remaining characters are
    ignored.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI58412

  • Reported component name

    LE ENT COBOL LI

  • Reported component ID

    568819812

  • Reported release

    790

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-03-02

  • Closed date

    2016-03-11

  • Last modified date

    2016-04-05

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

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

    PI59230

Modules/Macros

  • IGZXLPKA
    

Fix information

  • Fixed component name

    LE ENT COBOL LI

  • Fixed component ID

    568819812

Applicable component levels

  • R7A0 PSY UI36152

       UP16/03/17 P F603

  • R790 PSY UI36153

       UP16/03/17 P F603

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":"SSCVR7X","label":"Runtime"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
14 December 2020