A SERVICE OF

logo

262 Chapter 4
Command Definition F-K
FTN
FTN
Compiles a compatibility mode FORTRAN 77/V program. FORTRAN 77/V is not part of
the HP 3000 Series 900 Computer System Fundamental Operating Software and must be
purchased separately. The native mode equivalent of this command is FTNXL.
Syntax
FTN[ textfile][,[uslfile][,[listfile] ] ] [ ;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. Formal file designator is FTNTEXT.
Default is $STDIN.
uslfile Actual file designator of the USL file to which the object code is stored,
which can be any binary output file with a file code of USL or 1024. Its
formal file designator is FTNUSL. If the uslfile parameter is omitted, the
object code is saved to the temporary file $OLDPASS. If entered, this
parameter indicates that the USL file was created in one of four ways:
By using the MPE/iX SAVE command to save the default USL file
$OLDPASS, created during a previous compilation.
By building the USL with the segmenter -BUILDUSL command. Refer
to the MPE Segmenter Reference Manual (30000-90011).
By creating a new USL file with the MPE/iX BUILD command and
specifying a file code of USL or 1024.
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.
quotedstring A sequence of characters between two single quotation marks or between
two double quotation marks that specify compiler options. You may use the
delimiter as part of the string so long as the delimiter appears twice. Any
occurrence of two single or two double quotation marks in a row, is
considered part of the string, and, therefore, not the terminating delimiter.
Operation Notes
The FTN command compiles a compatibility mode HP FORTRAN 77/V program and stores
the object code in a user subprogram library (USL) file on disk. If textfile is not specified,
MPE/iX expects the source program to be entered from your standard input device. If you
do not specify listfile, MPE/iX sends the program listing to your standard list device and
identifies it by the formal file designator, FTNLIST.