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 for AMODE 64.
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL V6.3 running * * AMODE 64 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:--------------; COB0603T/K
Problem conclusion
The UNSTRING processing in the COBOL Runtime has been corrected. For the example in the description above, the produced outputs are: FIELD-1:--------------; FIELD-2:THIS IS A TEST;
Temporary fix
Comments
APAR Information
APAR number
PH19741
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
2020-01-18
Last modified date
2020-02-04
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI67448 UI67449
Modules/Macros
CELQSG04 CELQV004 IGZQAPI IGZQCDA IGZQINPL
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