A fix is available
APAR status
Closed as program error.
Error description
MOVE statement fails to move correct values to a UTF-8 referenced-modified receiver for AMODE64.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL 6.3 and later * * releases running AMODE 64 programs which use * * COBOL MOVE statements with a UTF-8 * * receiver reference-modified. * **************************************************************** * PROBLEM DESCRIPTION: MOVE statement fails to move * * correct values to a UTF-8 receiver * * referenced-modified. * * * * NEW FUNCTION. * **************************************************************** * RECOMMENDATION: Install the provided PTF. * **************************************************************** When a MOVE receiver meets all of the following conditions, incorrect values might be moved. - Receiver is a UTF-8 data item reference-modified - Receiver is greater than 256 bytes (e.g. PIC U(65) or bigger) - MOVE causes a right-shift of existing bytes in the receiver - The reference modification is not within the last 256 bytes of the receiver For example, the following code results in incorrect values moved to UTF8-LONG while the value is UTF8-SHORT is correct. IDENTIFICATION DIVISION. PROGRAM-ID. UTFDEMO. DATA DIVISION. WORKING-STORAGE SECTION. 01 UTF8-SHORT PIC U(64). 01 UTF8-LONG PIC U(65). PROCEDURE DIVISION. MOVE 'ABCDEF' TO UTF8-SHORT MOVE X'FC' TO UTF8-SHORT(2:1) MOVE 'ABCDEF' TO UTF8-LONG MOVE X'FC' TO UTF8-LONG(2:1) GOBACK. COB0603T/K COB0604T/K
Problem conclusion
The COBOL Runtime has been corrected to handle UTF-8 data items longer than 256 bytes.
Temporary fix
Comments
APAR Information
APAR number
PH60008
Reported component name
LE ENT COBOL LI
Reported component ID
568819812
Reported release
7E0
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2024-02-26
Closed date
2024-03-19
Last modified date
2024-04-01
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
CELQSG04 CELQV004 IGZQAPI IGZQCA64 IGZQCDA IGZQINPL IGZQJNI2
Fix information
Fixed component name
LE ENT COBOL LI
Fixed component ID
568819812
Applicable component levels
R7C0 PSY UI96137
UP24/03/28 P F403
R7D0 PSY UI96139
UP24/03/28 P F403
R7E0 PSY UI96140
UP24/03/28 P F403
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":"BU048","label":"IBM Software"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7E0","Line of Business":{"code":"LOB70","label":"Z TPS"}}]
Document Information
Modified date:
04 April 2024