NetBatch Management Programming Manual

NetBatch Procedure Calls
NetBatch Management Programming Manual522462-003
7-2
NB^JOB^SUBMIT Procedure
NB^JOB^SUBMIT Procedure
NB^JOB^SUBMIT is a TAL procedure defined in the NetBatch library file BATCHLIB.
The procedure enables job submission and alteration from user-written programs and
has functionality similar to that of the SUBMIT JOB and ALTER JOB commands.
error returned value
INT
returns a number indicating the result of the submit or alter operation. The number
can be zero (operation successful) or a NetBatch error number. For details of
NetBatch errors, see Appendix A, Error Numbers and Error Lists.
submit-rec input
STRUCT:ref:*
specifies the job’s name, scheduler, start time, defaults, and these attributes:
{ error := } NB^JOB^SUBMIT ( submit-rec!i
{ CALL } ,base-date!i
,masters!i
,purge-test-flag!i
,time-rec!i
,rt-time!o
,alter-flag!i
,open-t!io
,[ nb-job-num ]!io
,[ att-set ] ) ;!i
CLASS MAXPRINTLINES STALL
EXECUTOR-PROGRAM MAXPRINTPAGES STARTUP
HIGHPIN OUT STOP-ON-ABEND
HOLD PRIORITY TAPEDRIVES
HOLDAFTER RESTART WAIT
IN SELPRI