A fix is available
APAR status
Closed as program error.
Error description
UNSTRING with NOSSRANGE with COBOL V6 behave differently than COBOL V4 when dealing with zero-length items.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL V5 and later * * releases running programs which use COBOL * * UNSTRING statement with both zero and * * non-zero length receivers in the same * * statement. * * * **************************************************************** * PROBLEM DESCRIPTION: The UNSTRING statement produced * * incorrect data in non-zero length * * receivers. * * * **************************************************************** * RECOMMENDATION: Apply the provided PTF. * * * **************************************************************** The zero length receivers in UNSTRING should be ignored without affecting non-zero length receivers. For example, ... 01 LEN0 PIC 9(01) VALUE ZERO. 01 STR PIC X(14) VALUE 'THIS IS A TEST'. ... MOVE ALL '-' to FIELD-1 FIELD-2 UNSTRING STR INTO FIELD-1(1:LEN0) FIELD-2(1:) END-UNSTRING DISPLAY 'FIELD-1:' FIELD-1 ';' DISPLAY 'FIELD-2:' FIELD-2 ';' The above UNSTRING statement should produce outputs as shown in the CONCLUSION. But instead it produces incorrect outputs below: FIELD-1:--------------; FIELD-2:--------------; COB0501T/K COB0502T/K COB0601T/K COB0602T/K COB0603T/K
Problem conclusion
The UNSTRING processing in the COBOL Runtime has been corrected. For the above example, produced outputs are: FIELD-1:--------------; FIELD-2:THIS IS A TEST;
Temporary fix
Comments
APAR Information
APAR number
PH19740
Reported component name
LE ENT COBOL LI
Reported component ID
568819812
Reported release
7C0
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2019-11-28
Closed date
2019-12-12
Last modified date
2020-01-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI66974 UI66975 UI66976
Modules/Macros
IGZ3OPT IGZCEV4 IGZLLIBV IGZXAPI IGZXCDA IGZXD24 IGZXDMR IGZXLPIO IGZXLPKA IGZXLPKB IGZXLPKC IGZXLPKD IGZXLPKE IGZXLPKF IGZXLPKG IGZXOPT IGZXPK2
Fix information
Fixed component name
LE ENT COBOL LI
Fixed component ID
568819812
Applicable component levels
R7A0 PSY UI66976
UP19/12/19 P F912
R7B0 PSY UI66974
UP19/12/19 P F912
R7C0 PSY UI66975
UP19/12/19 P F912
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