IBM Support

PI20325: FILE STATUS 21 RECEIVED INSTEAD OF A 22 FOR A DUPLICATE RECORD.

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Program receives FS 21 when trying to write a duplicate record.
    The expected file status was 22 for a duplicate record.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of COBOL V5 running programs that use  *
    *                 VSAM KSDS files, that are OPENed for OUTPUT  *
    *                 or IO with ACCESS is DYNAMIC.                *
    *                                                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Incorrect FILE STATUS 21 (instead of    *
    *                      22) when a RECORD with the same key was *
    *                      written a second time (duplicate record *
    *                      key) for a VSAM KSDS file opened OUTPUT *
    *                      or IO with ACCESS is DYNAMIC.           *
    *                                                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The key comparison was done incorrectly for the RECORD KEY is
    equal case in the runtime library routine for WRITE.
    

Problem conclusion

  • Apply provided service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI20325

  • Reported component name

    LE ENT COBOL LI

  • Reported component ID

    568819812

  • Reported release

    780

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-06-18

  • Closed date

    2014-07-15

  • Last modified date

    2014-08-04

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

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

Modules/Macros

  • IGZXLPKA
    

Fix information

  • Fixed component name

    LE ENT COBOL LI

  • Fixed component ID

    568819812

Applicable component levels

  • R780 PSY UI19787

       UP14/07/30 P F407

  • R790 PSY UI19788

       UP14/07/30 P F407

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":"PF054","label":"z\/OS"}],"Version":"780","Line of Business":{"code":"LOB17","label":"Mainframe TPS"}}]

Document Information

Modified date:
09 January 2021