A fix is available
APAR status
Closed as program error.
Error description
If a COBOL v5+ program compiled RENT (ie. AMODE(31)), DATA(24), but linked AMODE(24),RMODE(24) receives control in AMODE(24) before the COBOL v5+ run-time has been initialized, the WSA is erroneously allocated above the line. This leads to an 0C4 in the prolog of the program. An example scenario is where a COBOL v4 module calls an assembler module that LOADs and BALRs to a COBOL v5+ program built as noted previously. The WSA (writable static area) is used for compiler temporaries, and may be allocated separately from the working-storage depending on compiler version and DATA() option setting.
Local fix
Compile the main program with COBOL v5+.
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL V5+ with AMODE 24 * * assembler programs calling Enterprise COBOL * * V5+ RENT programs linked AMODE 31 without * * switching AMODE. * * * **************************************************************** * PROBLEM DESCRIPTION: Runtime ABEND0C4: When an AMODE 31 * * Enterprise COBOL V5+ RENT program * * receives control in AMODE 24 before * * the COBOL V5+ runtime has been * * initialized, the writeable static area * * (WSA) used for internal control blocks * * associated with the program wss * * erroneously allocated above the line, * * resulting in a S0C4 ABEND when said * * control blocks are accessed. * * * **************************************************************** * RECOMMENDATION: Apply the provided PTF. * * * **************************************************************** When the first Enterprise COBOL V5+ program is executed, the LE CWI service CEEBMBR is used to initialize the runtime. In this scenario, the COBOL LE event handler is incorrectly using the high order bit of the COBOL program entry point address to determine if the writeable static area is to be allocated above or below the line. Instead, it should be using the running addressing mode when the COBOL program is entered for this purpose.
Problem conclusion
The allocation of the writeable static area is corrected to be based on the running addressing mode when the program is entered.
Temporary fix
Comments
APAR Information
APAR number
PI81789
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
2017-05-17
Closed date
2017-06-20
Last modified date
2017-07-05
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
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