## 14.2 OPTIONS Statement

The OPTIONS statement overrides or confirms the compiler options in effect for a program unit. It takes the following form:

  OPTIONS option [option...]
  option
  Is one of the following:

       /ASSUME = [NO]UNDERSCORE   (Alpha only)

                {ALL            }
                {[NO]BOUNDS     }
       /CHECK = {[NO]OVERFLOW   }
                {[NO]UNDERFLOW  }
                {NONE           }

       /NOCHECK

                  {BIG_ENDIAN     }
                  {CRAY           }
                  {FDX            }
                  {FGX            }
       /CONVERT = {IBM            }
                  {LITTLE_ENDIAN  }
                  {NATIVE         }
                  {VAXD           }
                  {VAXG           }

       /[NO]EXTEND_SOURCE
       /[NO]F77

                {D_FLOAT   (VMS only)  }
       /FLOAT = {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.

Examples

The following are valid OPTIONS statements:

      OPTIONS /CHECK=ALL/F77

      OPTIONS /I4

For More Information:

For details on compiler options, see your user manual or programmer's guide.

Previous Page Next Page Table of Contents