NetBatch Manual
NBEXEC
NetBatch Manual—522460-004
B-4
NBEXEC-Defined Variables
•
! (exclamation point) indicates a nonexecutable comment.
•
* (asterisk) indicates data that NBEXEC passes to a process it starts.
•
. (period) indicates a label.
NBEXEC-Defined Variables
NBEXEC defines several logical and string variables:
•
NBEXEC logical variables return values that are either true or false:
#ERROR #NEXTFILENAME
#NEXTOPEN #NEXTROLL-FORWARD
#NEXTAUDIT #NEXTLICENSE
#NEXTPROGID
•
NBEXEC string variables return information such as the time or date. They are:
#BP #NEXTBLOCK #NEXTRECLEN #NEXTUSER
#BPID #NEXTCODE #NEXTSECURE #PID
#CC #NEXTDATE #NEXTSIZE #TI
#HOME #NEXTEXTSIZE #NEXTTIME #TIME
#JOBID #NEXTNAME #NEXTTYPE #TODAY
•
When using a string variable to return a value in a control file, enclose the variable
in single quotes (' '); for example, '#TODAY'. NBEXEC replaces the quotes and
variable name with the value of the variable. Quotes are not required when testing
the value of the variable, as in a $IF command (for example, $IF #JOBID …, not
$IF '#JOBID' …).
:ACTIVATE :DELETE DEFINE :PURGE :SUSPEND
:ADD DEFINE :FILES :RENAME :SYSTEM
:ASSIGN :LOGON :RUN :TIME
:COMMENT :OBEY :SET DEFINE :VOLUME
:CLEAR :PARAM :STATUS :WHO
:CREATE :PPD :STOP