HPlogo MPE/iX Commands Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 4  Command Definition F-K

FORTGO

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Compiles, prepares, and executes a compatibility mode FORTRAN 66/V program. FORTRAN 66/V is not part of the HP 3000 Series 900 Computer System Fundamental Operating Software and must be purchased separately.

Syntax

FORTGO [textfile] [,[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.

listfile

Actual file designator of the file to which the program listing is written. This can be any ASCII output file. The 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. The formal file designator is FTNMAST. Default is that the file is not read; input is read from textfile, or from $STDIN if textfile is not specified.

newfile

Actual file designator of the file resulting from merging textfile and masterfile. This can be any ASCII output file. The formal file designator is FTNNEW. Default is that the file is not 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 or two double quotation marks 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, 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 FILE command.

Operation Notes

The FORTGO command compiles, prepares, and executes a compatibility mode FORTRAN 66/V program. If you do not specify a source file, MPE/iX expects input from your standard input device. If you do not specify listfile, MPE/iX writes the listing to your standard output device.

The USL file created during the compilation is a system-defined temporary file $OLDPASS, which is passed directly to the MPE segmenter, and cannot be accessed.

Use

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 the RESUME command continues the execution.

Examples

To compile, prepare, and execute a FORTRAN 66/V program entered from the disk file SOURCE and transmit the resulting program listing to the disk file LISTFL, enter:

 FORTGO SOURCE,LISTFL

To enter your source input from a device other than your standard input device, and/or direct the listing to a device other than your standard list device, simply name the input and listing files as command parameters. In the example below, the source listing is read from magnetic tape, formally identified by the file name MTAPE. Output is sent to the printer, identified by the file name PRTR.

 FILE MTAPE;DEV=TAPE
FILE PRTR;DEV=FASTLP

MTAPE and PRTR are then backreferenced in the FORTGO command, as shown here:

 FORTGO *MTAPE,*PRTR

Related Information

Commands

FORTPREP, FORTRAN, RUN, XEQ, PREP, SEGMENTER

Manuals

HP FORTRAN/3000 Reference Manual

MPE Segmenter Reference Manual

Feedback to webmaster