FORTRAN



FORTRAN

     Compiles a Compatibility Mode FORTRAN 66/V program.  FORTRAN
66/V is not part of the 900 Series HP 3000 Computer System
Fundamental Operating Software and must be purchased
separately. (CM)

SYNTAX

     FORTRAN [textfile][,[uslfile][,[listfile][,[masterfile][,[newfile]]]]]
[;INFO=quotedstring]

PARAMETERS

textfile            Actual file designator of the input file from which
the source program is read. This can be any ASCII
input file. The formal file designator is FTNTEXT.
Default is $STDIN.

uslfile Actual file designator of the User Subprogram
Library (USL) file to which the object program is
written, which can be any binary output file with
file code of USL or 1024. The formal file
designator is FTNUSL. If the uslfile parameter is
omitted, the object code is saved to the temporary
file $OLDPASS. If entered, the file must have been
created in one of four ways:

o By using the MPE/iX SAVE command to save default
USL file $OLDPASS created during a previous compilation.

o By building the USL with the MPE Segmenter -
BUILDUSL command. (Refer to the MPE Segmenter
Reference Manual (30000-90011).)

o By creating a new USL file with the MPE/iX
BUILD command and specifying with a file code of
USL or 1024.

o By specifying a nonexistent uslfile parameter,
thereby creating a permanent file of the correct
size and type.

listfile Actual file designator of the file to which the
program listing is written. This can be any ASCII
output file. Formal file designator is FTNLIST.
Default is $STDLIST.

masterfile Actual file designator of the master file with which
textfile is merged to produce a composite source.
This can be any ASCII input file. Formal file
designator is FTNMAST. Default is that the master
file is not read; input is read from textfile, or
from $STDIN if textfile is not specified.

newfile Actual file designator of the merged textfile and
masterfile. This can be any ASCII output file.
Formal file designator is FTNNEW. Default is that
no file is written.

quotedstring A sequence of characters between two single
quotation marks (apostrophes) or between two double
quotation marks. You may use the delimiter as part
of the string so long as the delimiter appears
twice. Any occurrence of two single quotation marks
in a row, or two double quotes in a row, is
considered part of the string, and, therefore, not
the terminating delimiter.

INFO=quotedstring is used to pass initial compiler
options to a program.

NOTE

The formal file designators used in this command (FTNTEXT, FTNUSL,
FTNLIST, FTNMAST, and FTNNEW) cannot be backreferenced as actual file
designators in the command parameter list. For further information,
refer to the "IMPLICIT FILE COMMANDS FOR SUBSYSTEMS" discussion of the
MPE/iX FILE command.

OPERATION

     This command compiles a Compatibility Mode FORTRAN 66/V
program into a USL file on disk. If you do not specify
textfile, MPE/iX expects input from your standard input
device. If you do not specify listfile, MPE/iX sends the
listing to your standard list device.

If you create the USL file (using the MPE/iX BUILD command)
before compiling the program, you must assign it a file code
of USL or 1024. If you omit this parameter, the compiled
program segments will be stored in the temporary file $OLDPASS.

This command may be issued from a session, job, or program. It may
not be used in BREAK. Pressing [Break] suspends the execution of
this command. Entering RESUME continues the execution.

EXAMPLE(S)

     To compile an FORTRAN 66/V program entered from your
standard input device into an object program in the USL file
$OLDPASS, and write the listing to your standard list
device, enter

FORTRAN

The following example compiles a program from the source
file MYSOURCE and stores the object code into the USL file
MYUSL. The program listing will be stored in the disk file MYLIST

HP FORTRAN MYSOURCE,MYUSL,MYLIST;INFO= "$CONTROL BOUNDS"

To compile an FORTRAN 66/V program and store the object code
into a USL file you create with the BUILD command, enter

BUILD OBJECT;CODE=USL

FORTRAN SOURCE,OBJECT,LISTFL

ADDITIONAL INFORMATION

Commands:   FORTGO, FORTPREP

Manuals :   HP FORTRAN 77/iX Reference (31501-90010)
            MPE Segmenter Reference Manual (32650-60026)