
Chapter 6 441
Command Definitions P-R
PREPRUN
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