A fix is available
APAR status
Closed as program error.
Error description
Performance improvement for INSPECT statement
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL V5 or later * * releases running programs that use INSPECT * * statements with BEFORE or AFTER phrase. * **************************************************************** * PROBLEM DESCRIPTION: If the delimiter in the BEFORE or AFTER * * phrase has more than one character, * * and the first character is repeated * * contiguously in the item being * * inspected, performance may be slower * * than other common inspect scenarios. * * (Refer to Problem Summary below for an * * example of the INSPECT statement.) * **************************************************************** * RECOMMENDATION: Apply the PTF provided. * **************************************************************** The string comparison method used to check BEFORE and AFTER delimiter is not optimized for repeat characters in the inspected data item (i.e. ITEM1 in the sample below). The code fragment below shows an example of such a case. The repeated "A" in ITEM1 causes the COBOL library routine to do unnecessary checking during string comparison. ----------------------------------------------------- 01 ITEM1 PIC X(80) VALUE "THIS IS AAAAAAAAAAAAAAAAAAAAAAAAAATEST". 01 TALLY1 PIC 9(8). INSPECT ITEM1 TALLYING TALLY1 FOR CHARACTERS BEFORE 'ABCD'. ----------------------------------------------------- COB0501T/K COB0502T/K COB0601T/K COB0602T/K COB0603T/K
Problem conclusion
BEFORE and AFTER processing of the COBOL library INSPECT routine has been improved.
Temporary fix
Comments
×**** PE20/05/12 FIX IN ERROR. SEE APAR PH25316 FOR DESCRIPTION ×**** PE20/05/12 FIX IN ERROR. SEE APAR PH25316 FOR DESCRIPTION ×**** PE20/05/12 FIX IN ERROR. SEE APAR PH25316 FOR DESCRIPTION
APAR Information
APAR number
PH22863
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
2020-03-03
Closed date
2020-04-20
Last modified date
2020-05-20
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI69091 UI69093 UI69094
Modules/Macros
IGZCEV4 IGZLLIBV IGZXAPI IGZXCDA IGZXD24 IGZXDMR IGZXLPIO IGZXLPKA IGZXLPKB IGZXLPKC IGZXLPKD IGZXLPKE IGZXLPKF IGZXLPKG IGZXPK2
Fix information
Fixed component name
LE ENT COBOL LI
Fixed component ID
568819812
Applicable component levels
R7A0 PSY UI69091
UP20/04/25 P F004
R7B0 PSY UI69093
UP20/04/25 P F004
R7C0 PSY UI69094
UP20/04/25 P F004
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"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"LOB17","label":"Mainframe TPS"}}]
Document Information
Modified date:
14 December 2020