Release 11.x generates this error: EZTC0487E >>> $ subscript cannot have OCCURS
search cancel

Release 11.x generates this error: EZTC0487E >>> $ subscript cannot have OCCURS

book

Article ID: 62924

calendar_today

Updated On:

Products

PanAudit Plus Easytrieve Report Generator PAN/SQL

Issue/Introduction

Description:

WS-COMPUTE = WS-AGY-QBCRED / GROUP-GOAL(GROUP) * 100 + .05EZTC0487E >>>                $ subscript cannot have OCCURS 

The OCCURS option establishes an array for field-name.
Maximum-occurrences specifies the number of elements in the array (the number of occurrences of field-name). Maximum-occurrences must be specified as an unsigned integer. You can reference the elements of this array by manipulating the INDEX defined for field-name or by using subscripts.

 

Environment

Easytrieve Report Generator, release 11.6

Resolution

Solution:

Group is part of an OCCURS. GROUP would have to be moved to a single instance to be used as a subscript.

Previous releases ignored the OCCURS clause for the subscript and treated it as a single instance.

The stricter syntax checking in EZT 11.x makes the user aware of the restrictions that apply to using subscripts. before runtime errors occur.