A fix is available
APAR status
Closed as program error.
Error description
COBOL program does a READ of a fixed length QSAM file defined as RECORD CONTAINS 0 CHARACTERS. This causes an overlay of Working Storage.
Local fix
Specify actual length of record on RECORD CONTAINS clause
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL V5.2 compiling * * and running programs that contain READ * * statements that a QSAM fixed length record * * file defined with RECORD CONTAINS 0 * * CHARACTERS clause. * * * **************************************************************** * PROBLEM DESCRIPTION: Incorrect output: When using a READ * * statement to read a QSAM fixed length * * record file that is defined with * * RECORD CONTAINS 0 CHARACTERS clause, * * the compiler generates code that * * overwrites the first WORKING- STORAGE * * section record. * * * **************************************************************** * RECOMMENDATION: Apply the provided PTF. * **************************************************************** The compiler was allocating a file buffer of 0 length for a QSAM fixed length record file that is defined with RECORD CONTAINS 0 CHARACTERS clause. That caused the READ statement reading the first record of the file to overwrite the first WORKING-STORAGE section record.
Problem conclusion
The compiler was modified so that when a QSAM fixed length record file defined with RECORD CONTAINS 0 CHARACTERS clause the compiler will allocate a file buffer as big as the file record length.
Temporary fix
Comments
APAR Information
APAR number
PI59088
Reported component name
ENT COBOL FOR Z
Reported component ID
5655W3200
Reported release
520
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-03-14
Closed date
2016-03-23
Last modified date
2016-06-04
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
PI61145 PI63297
Modules/Macros
IGYCCBE
Fix information
Fixed component name
ENT COBOL FOR Z
Fixed component ID
5655W3200
Applicable component levels
R520 PSY UI36448
UP16/03/30 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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"520","Edition":"","Line of Business":{"code":"LOB17","label":"Mainframe TPS"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"520","Edition":"","Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
04 June 2016