NBSpool for MPE Reference Guide
Running NBSpool
2-15
Variables Set by NBSpool
The following variables, which are actually JCW’s, are set by NBSpool during normal operation.
Variable Description
NBQUALIFIED
Count of spool files that qualified on the last command. This is not a
count of spool files that were successfully processed.
NBSTRINGFOUND
If a
LIST
command with a string is executed, this JCW is created. It is
set to
1
if the string was found, otherwise it is set to
0
.
NBFIRSTLINE
Set by the
LIST
command if the
VARS
parameter is used. Equals the line
number of the first line listed.
NBLASTLINE
Similar to
NBFIRSTLINE
, except that it is set to the line number of the
last line listed.
Note. NBSpool uses the
LPP
JCW to override the default
LPP
value of
60
for all
commands that use “lines per page.” This value is only read when NBSpool is started.
Predefined Variables
NBSpool creates “virtual” variables that do not really exist, but can be used by NBSpool commands.
In order to use these variables in child processes or after leaving NBSpool, you must issue a
SETVAR
or
SETJCW
command explicitly.
Note. The scope of these variables is limited, so they may not exist at all times.
Variables beginning with
CURR
only exist during the execution of a
WHILE
loop.
The following variables are predefined.
Variable Description
CURRENT
This variable is used to pass the current spool file ID to each command in
WHILE
loops.
Continued