NBSpool for MPE Reference Guide
Chapter 2
2-4
UDC Commands
To facilitate the creation of user defined commands (UDCs), a list of commands to be executed may
be passed to NBSpool via the
;INFO= parameter of the :RUN command. Multiple commands may be
separated by backslash (
\
) characters. After the commands are executed, the user will be left in the
program unless the last command is
EXIT or QUIT.
The following is a sample UDC that allows texting of spool files:
TS SPOOLID=”$”
RUN NBSPOOL.PUB.NETBASE;INFO=”T !SPOOLID\L A”
***
The UDC shown in the example below will allow the user to text a spool file from MPE by typing:
:TS subset
The
subset
parameter identifies a spool file or a group of spool files. If more than one spool file
qualifies for the subset, NBSpool will display all the matching spool files and prompt the user to
choose one. The texted spool file will be listed on the screen.
If a command is prefaced with a hyphen (
-
), all commands in the INFO string following the hyphen
will not be echoed. Echoing may be re-enabled by prefacing a command with plus sign (
+
). The
example shown below will cause the first command to be executed but not displayed. The
SHOW
command will be displayed as normal.
RUN NBSPOOL.PUB.NETBASE;INFO=”-SORT U,C\+SHOW $”