-laxdefined / -nolaxdefined

Determines enablement of type and storage checking for DEFINED variables.

Syntax

-laxdefined
-nolaxdefined

Behavior

-laxdefined
Disables type and storage checking of DEFINED variables.
-nolaxdefined
For DEFINED variables, enables both type and storage checking on DEFINED variable and the base variable.

Default

-laxdefined

Dependencies

The following compiler options imply -nolaxdefined:

  • -cics
  • -sql
  • -dli
  • -mvs
  • -ims

To override this for the above-referenced compiler options, set them in combination with -laxdefined.

Example

When -nolaxdefined is set:

DCL S1 CHAR(10); DECLARE S2 CHAR(20) DEFINED (S1);

Results in an appropriate diagnostic.