APAR status
Closed as program error.
Error description
The IDz COBOL Editor incorrectly flags the following sample program with error messages ID DIVISION. PROGRAM-ID. TSUMALL. DATA DIVISION. WORKING-STORAGE SECTION. 01 FELDER. 05 ARR1 OCCURS 10. 10 VAL2 OCCURS 10. 15 VAL21 PIC 99 VALUE 21. 01 SUMALL PIC 9(5). PROCEDURE DIVISION. COMPUTE SUMALL = FUNCTION SUM(VAL21(ALL, 6)) DISPLAY "ALL,6: " SUMALL . COMPUTE SUMALL = FUNCTION SUM(VAL21(3, ALL)) DISPLAY "3,ALL: " SUMALL . COMPUTE SUMALL = FUNCTION SUM(VAL21(ALL, ALL)) DISPLAY "all,ALL: " SUMALL . GOBACK . The program compiles and executes correctly, but the IDz COBOL Editor flags two of the three SUM functions as syntax errors - "ERROR_TOKEN" unexpected tokens ignored Multiple markers at this line - ": )" inserted to complete scope - ")" inserted to complete scope The problem does not occur for one-dimensional arrays, e.g. SUM(X(ALL)) or MAX(X(ALL))
Local fix
none (just ignore the false messages)
Problem summary
The COBOL editor does not parse and gives false syntax warnings when using "ALL" subscript such as in FUNCTION SUM(X(ALL, ALL)).
Problem conclusion
This issue has been resolved.
Temporary fix
Comments
APAR Information
APAR number
PH26409
Reported component name
DEV FOR Z/OS
Reported component ID
5724T0700
Reported release
E20
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2020-06-12
Closed date
2020-12-04
Last modified date
2020-12-04
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
DEV FOR Z/OS
Fixed component ID
5724T0700
Applicable component levels
[{"Line of Business":{"code":"LOB17","label":"Mainframe TPS"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSQ2R2","label":"Rational Developer for z Systems"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"E20"}]
Document Information
Modified date:
05 December 2020