MPE/iX Commands Reference Manual (32650-90877)

460 Chapter11
Command List IX
Commands RECALL/=RECALL thru RUN
Examples
To list the references of a loaded program, enter:
RUN XLAB;LMAP
To run a program stored in the program file PROG4, beginning at the entry point SECLAB,
enter:
RUN PROG4,SECLAB
The following example runs a program TESTPROG with $STDIN set to an old disk file named
INPUT and $STDLIST set to the line printer:
FILE LPFILE;DEV=LP
RUN TESTPROG; STDIN=INPUT;&
STDLIST=*LPFILE
The next example runs a program using the STDIN parameter, setting $STDIN to an
existing disk file named INPUT, this time referenced through a file equation. To set
$STDLIST to a temporary disk file named RESULTS that is automatically created by the RUN
command, enter:
FILE INFILE=INPUT,OLD
RUN TESTPROG;DEBUG;STDIN=*INFILE;STDLIST=RESULTS,NEW
The following example of the RUN command uses the INFO= parameter to pass a string to
the program:
RUN MYPROG;INFO= "A TEST WITH ""AND""&
CHARACTERS"
In quotedstring, "AND" is bounded by an extra pair of quotation marks. As a result, the
string passed to the program is:
A TEST WITH "AND" CHARACTERS
Related Information
Commands LINK, PREP, XEQ, VERSION Utility
Manuals CREATEPROCESS intrinsic in the MPE/iX Intrinsics Reference Manual