-defext / -nodefext

Determines whether initialized values for STATIC EXTERNAL variables are defined.

Syntax

-defext
-nodefext

Behavior

-defext
Required when compiling programs using external files. Causes the initialized values of STATIC EXTERNAL variables and external file constants to be defined. Each STATIC EXTERNAL variable that has an INITIAL value must be declared in one and only one module that has been compiled with -defext. Failure to do so causes the INITIAL value to have no effect.

Also, each file constant must be declared in one and only one module that has been compiled with -defext. When -defext is used, file attributes specified in the file declaration merges with attributes specified when the file opens. This is critical when doing VSAM/INDEXED I/O.

-nodefext
Prevents definition of initialized values of STATIC EXTERNAL variables and external file constants. Default.

Default

-nodefext