HP 3000 Manuals

INCLUDE Directive [ HP FORTRAN 77/iX Reference ] MPE/iX 5.0 Documentation


HP FORTRAN 77/iX Reference

INCLUDE Directive 

The INCLUDE directive includes the contents of a file at the current
position in the source.

Syntax 

$INCLUDE {'filename'}
         {"filename"}

filename         names a file whose contents are to be included at the
                 current position in the source.

Default          None.

Location         The INCLUDE directive can appear anywhere within a
                 program unit.

                 The INCLUDE directive can also appear as a statement
                 starting in column seven, with no initial ''$''.  See
                 "INCLUDE Statement (Nonexecutable)"  for a complete
                 description.

Additional Information 

The filename can be fully qualified by group and account names and a
lockword (a password associated with an individual file).  Uppercase and
lowercase letters are equivalent.

The compiler reads the designated file until it encounters an EOF marker.
Then, the compiler resumes processing from the source line after the
INCLUDE directive.  The compiler ignores any additional directive listed
on the same line as the INCLUDE directive.

Included code can itself contain additional INCLUDE directives, to a
maximum nesting level of eight.

Line numbering within the listing of an included file begins with one.
Each line in the included file has a plus sign to the left of the line
number.  When the included file listing ends, the include level decreases
appropriately and the previous line numbering resumes.

Example 

     $INCLUDE 'globf77'



MPE/iX 5.0 Documentation