Run Program [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Run Program
Purpose
Runs another program from HP EDIT.
Default Syntax
&
Description
This command temporarily suspends editing and enables you to execute
another program in foreground or background mode without having to
conclude the editing session. This function enables you to run system
programs as well as user and application programs.
Command Process
When you execute the command, HP EDIT suspends editing and prompts you
for the program name at the top of a new screen. If you do not specify
the group or account with the program name, HP EDIT first searches in
your group for the program file. If no file with this name exists in
your group, HP EDIT searches in the PUB.SYS group for the program. After
you provide the program name, HP EDIT then prompts you for the INFO and
PARM parameters. After you respond to both prompts, MPE runs the
requested programs. If you specify an invalid program name, HP EDIT
displays an error message and prompts for another program name.
Run Modes
When you run a program in foreground mode, you cannot return to the
current editing session until the program finishes running or until you
exit the program. If you want to return immediately to the next RUN
prompt, you can run the program in background mode by appending an
ampersand (&) at the end of the program name. A background program
should not require any terminal input. The program should also send its
output to a destination other than the terminal, since terminal output
cannot be displayed in this mode.
Procedures
To run a program in foreground mode:
1. Press the & key, or press the MPE and Options function key,
followed by the Run Program function key. HP EDIT displays the
prompt Press Return to cancel and the prompt :RUN at the top of an
otherwise blank screen.
2. Type the name of the program to be run and press Return. HP EDIT
displays the prompt INFO= on the next line.
3. Type the Info string and press Return, or do not type a string and
simply press Return. HP EDIT displays the prompt PARM= on the
next line.
4. Type a number for the Parm value and press Return, or do not type
a number and simply press Return for a Parm of zero. HP EDIT runs
the program. After the program finishes executing, the prompt
discussed in Step 1 reappears. You can either enter another
program name or return to the editing session by pressing Return.
To run a program in background mode:
1. Press the & key, or press the MPE and Options function key,
followed by the Run Program function key. HP EDIT displays the
prompt Press Return to cancel and the MPE prompt :RUN at the top
of an otherwise blank screen.
2. Type the name of the program to be run followed by an ampersand
(&) and press Return. HP EDIT displays the prompt INFO= on the
next line.
3. Type the Info string and press Return, or do not type a string and
simply press Return. HP EDIT displays the prompt PARM= on the
next line.
4. Type a number for the Parm value and press Return, or do not type
a number and simply press Return for a Parm of zero. HP EDIT
starts the program and immediately displays the prompt discussed
in Step 1. You can either enter another program name or return to
the editing session by pressing Return.
Example
To run the program for COBOLII in background mode:
1. Press the & key. HP EDIT displays the following prompt:
Press Return to cancel
:RUN _
2. Type cobolii& and press Return. HP EDIT displays the INFO prompt
below the program name:
Press Return to cancel
:RUN cobolii&
INFO=_
3. Type an Info string, if desired, and press Return. HP EDIT
displays the PARM prompt below the Info parameter:
Press Return to cancel
:RUN cobolii&
INFO=
PARM=_
4. Type an appropriate Parm value, if desired, and press Return. HP
EDIT starts the program and displays the following prompt:
Press Return to cancel
:RUN _
5. Press Return to resume the editing session.
Related Commands
Break To MPE
Execute MPE Command
Run TDP Formatter
MPE/iX 5.0 Documentation