OPTIONS

Statement: Overrides or confirms the compiler options in effect for a program unit.

Syntax

OPTIONS option [option...]

option
Is one of the following:

/ASSUME = [NO]UNDERSCORE (Alpha only)
/CHECK = ALL
[NO]BOUNDS
[NO]OVERFLOW
[NO]UNDERFLOW
NONE
/NOCHECK  
/CONVERT = BIG_ENDIAN
CRAY
FDX
FGX
IBM
LITTLE_ENDIAN
NATIVE
VAXD
VAXG
/[NO]EXTEND_SOURCE  
/[NO]F77  
/FLOAT = D_FLOAT (VMS only)
G_FLOAT (VMS only)
IEEE_FLOAT
/[NO]G_FLOATING (VMS only)  
/[NO]I4  
/[NO]RECURSIVE  

Note that an option must always be preceded by a slash (/).

Some OPTIONS statement options are equivalent to compiler options.

Rules and Behavior

The OPTIONS statement must be the first statement in a program unit, preceding the PROGRAM, SUBROUTINE, FUNCTION, MODULE, and BLOCK DATA statements.

OPTIONS statement options override compiler options, but only until the end of the program unit for which they are defined. If you want to override compiler options in another program unit, you must specify the OPTIONS statement before that program unit.

Example

The following are valid OPTIONS statements:

  OPTIONS /CHECK=ALL/F77
  OPTIONS /I4