MPE/iX Commands Reference Manual (32650-90877)

206 Chapter6
Command List IV
Commands FCOPY thru GETRIN
The following is an example of using the
*formaldesignator
, in this case, specifying a file
on magnetic tape used as a source file during FORTRAN compilation:
FILE SOURCE=TAPE1,OLD;DEV=TAPE;REC=-80
FTNXL *SOURCE
Implicitly, the command executor issues the following FILE command, backreferencing
your previous FILE command:
FILE FTNTEXT=*SOURCE
Implicit FILE commands, like explicit FILE commands, cancel any previous FILE
commands that reference the same formal file designators. Formal file designators are
described in each compiler command description.
The following example uses NMS file option SPOOL:
FILE MYSPOOL;DISC=3000,1,1;SPOOL
PRINT DOCFILE.MYGROUP.MYACCT,*MYSPOOL
Because the DEV= parameter of the FILE command is defaulted to disk, the result is an
unlinked output spool file. To send this file to a printer, use the following command:
SPOOLF MYSPOOL;PRINT;DEV=LP
This links MYSPOOL to the SPFDIR using the default PRI (8) and number of copies (1).
Note that the DEV= parameter is required with the SPOOLF;PRINT command to link the
spool file to a target device. Failure to specify DEV= (or specifying an inappropriate DEV
such as
disk
) results in an error message.
HFS Examples
FILE X=./my_file;SAVE
PURGE *X
To reference the device link file TAPE7 in a file equation, enter:
FILE T=TAPE7,OLD
Related Information
Commands BUILD, LISTEQ, LISTFILE, RESET
Manuals MPE/iX Intrinsics Reference Manual
FINDDIR (UDC)
The FINDDIR UDC executes the LISTFILE command to search for a directory.
NOTE
System-defined UDCs are not automatically available. Your System Manager
must use the SETCATALOG command to make these UDCs available for your
use. For example:
SETCATALOG HPPXUDC.PUB.SYS;SYSTEM;APPEND