MPE/iX Commands Reference Manual (32650-90877)
Chapter 10 379
Command List VIII
Commands PASCAL thru PURGEUSER
To prepare and execute a program from the USL file UBASE that begins execution at the
entry point RESTART, that has a
stacksize
of 800 words, and searches an RL file named
LIBA, enter:
PREPRUN UBASE,RESTART;STACK=800;RL=LIBA
The following example prepares and runs a program with $STDIN set to the existing disk
file INPUT. $STDLIST is set to the line printer:
FILE LPFILE;DEV=LP
PREPRUN TESTPROG;MAXDATA=10000;$STDIN=INPUT;&
$STDLIST=*LPFILE
The next example also uses the $STDIN= and $STDLIST= parameters to prepare and run a
program. This time, a file equation is used to set $STDIN to INPT, and to set $STDLIST to
the temporary disk file RESULTS (which is automatically created by the RUN command).
FILE INFILE=INPT,OLD;
PREPRUN TESTPROG;DEBUG;$STDIN=*INFILE;$STDLIST=RESULTS,NEW
The following example of the PREPRUN command uses the INFO= parameter to pass a string
to the program:
PREPRUN MYPROG;MAXDATA=2000;INFO="A TEST WITH "" AND "" &
CHARACTERS"
Note that the delimiting character is doubled within the string so that it appears on the
printout as follows:
A TEST WITH "AND" CHARACTERS
Related Information
Commands PREP, RUN, XEQ
Manuals MPE Segmenter Reference Manual
PRINT
Prints the contents of a file.
Syntax
PRINT
filename
[OUT=
outfile
] [START=
m
] [END=
n
] [PAGE=
p
] [;UNN | NUM] [;NONUM]
Parameters
filename
Actual file name of the file to be printed to $STDLIST, unless
outfile
is
specified as a destination. To specify an HFS file, begin the filename with a
dot (.) or slash (/). The
filename
may specify either a temporary or a
permanent disk file.
File equations are ignored unless an asterisk (*) precedes
filename
,
indicating a backreference.
The
filename
may be $STDIN or $STDINX.
If you do not specify a file name, PRINT takes its input from $STDINX and
continues to do so until you enter the :EOD command on a new line.