option #54

Relax rules for compiling with -qcheck

WSupported on Windows
USupported on Unix
VSupported on OpenVMS

 

When system option #54 is set, compiling with the -qcheck option (or /CHECK=BOUNDS on OpenVMS) only generates a subscript error for data outside the defining data area (common space, routine record space, global space, and literal space). (On OpenVMS, only routine record space and literal space can be checked.)

If system option #54 is not set, a subscript error occurs if the subscript is beyond the definition of the individual field. For example, given the following data division:

record
    var         ,2d4
    var1        ,d4

var(3) causes a subscript error if system option #54 is not set but not if it is set. However, var(4) causes an error in either case.

Note

System option #54 will cause subscript errors if used in conjunction with arrays in class data. Therefore, it should not be used with object-oriented code.