A fix is available
APAR status
Closed as program error.
Error description
As FUNCTION LENGTH() doesn't use the value of its argument, the NUMCHECK compiler option should not cause validation code to be generated if that argument is a simple numeric type.
Local fix
Use LENGTH OF where possible.
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL V6.2 compiling * * and running programs that contain * * invocations of FUNCTION LENGTH with numeric * * operands, who are also using the NUMCHECK * * compiler option. * **************************************************************** * PROBLEM DESCRIPTION: Misleading results: NUMCHECK was * * generating a numeric class test for * * operands of FUNCTION LENGTH, but the * * content of those data items is not * * relevant to the output of FUNCTION * * LENGTH, it only checks the data * * definition for the length. * **************************************************************** * RECOMMENDATION: Apply the provided PTF. * **************************************************************** The compiler was a little too aggressive about checking numeric data items for bad data.
Problem conclusion
The compiler was changed to not generate numeric class tests for operands of FUNCTION LENGTH.
Temporary fix
Comments
APAR Information
APAR number
PI90665
Reported component name
ENT COBOL FOR Z
Reported component ID
5655EC600
Reported release
620
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2017-11-24
Closed date
2018-02-13
Last modified date
2018-10-02
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
ENT COBOL FOR Z
Fixed component ID
5655EC600
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":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SS6SG3","label":"Enterprise COBOL for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"620","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Document Information
Modified date:
12 December 2023