SeeView Manual

SeeView Statements and Script Symbols
HP NonStop SeeView Manual526355-004
9-89
RUN
program
specifies the program that the RUN statement starts and to which it passes
terminal control. Program can be either an external file name such as
$DATA.MYSUBVOL.MYPROG or a string expression that contains an external file
name such as RUN #VOLSUB & “myprog”.
startup-message
specifies a startup message either:
As text after the program-fname [ / opt [, opt … ] / ] part
As a string expression (string-exp) if you use the STARTUP option (See the
following information.)
When you specify the startup-message as text after the program name, it must
not contain semicolons unless you enter it from a window sill or it appears in a
menu production. When you use the RUN statement in a script, you must specify
semicolons by using the STARTUP string-exp syntax. Thus, the parse for the
RUN statement behaves differently when it appears in a menu production (or
window sill) than when it appears in the body of a SeeView script.
When a RUN statement appears in a menu production, for example, all text after
the program-fname is interpreted as the startup-message, even though it
might contain semicolons.
MyProg <== RUN PATHCOM $PM; RUN PROGRAM MYPROG
It is often desirable to correlate menu items with RUN statements and their
corresponding startup-messages without requiring the script writer to have a
separate procedure for each menu item.
When the RUN statement appears as part of a script, this style of parsing is not
permitted, and you must use the optional STARTUP string-exp syntax to
specify a startup-message that contains semicolons.
RUN program [ /opt [, opt… ] / ] [ startup-message ]
Where opt ::= [ ALLOWERROR ]
[ CPU cpu-number ]
[ HIGHPIN ON | OFF ]
[ IN filename ]
[ LIB library-fname ]
[ NAME process-name ]
[ ONMYVOL ]
[ ONOBJVOL ]
[ OUT filename ]
[ PRIORITY process-priority ]
[ STARTUP string-exp ]
[ SWAP swap-fname ]
[ VOLUME subvol | str-exp ]