NetBatch Management Programming Manual
NetBatch Procedure Calls
NetBatch Management Programming Manual—522462-003
7-28
Sample TAL Program
Step 5: Compile Source File
End the EDIT session and compile the source file:
*EXIT
23> TAL /IN TEMP.NBTALSRC/ TEMP.NBTALOBJ; SUPPRESS
Step 6: Test the Program
Test the program by running the compiled object:
> RUN TEMP.NBTALOBJ
Error 0513 encountered.
Job submitted to $ZBAT using NB^JOB^SUBMIT
Job number : 0004
Job name : NBJS-TAL-JOB
Step 7: Delete the Submitted Job
> BATCHCOM $ZBAT; DELETE JOB NBJS-TAL-JOB
Job NBJS-TAL-JOB Jobnumber 4 deleted
Example 7-3. Sample NB^JOB^SUBMIT TAL Program
?NOMAP,NOLMAP,NOGMAP,NOCODE
?INSPECT,SYMBOLS
! OVERVIEW:
!------------------------------------------------------------ !
! !
! This is an example program to be included in the SPI !
! Manual to illustrate the programmatic use of NB^JOB^SUBMIT!
! to submit a job to a NetBatch Scheduler !
! !
! It performs two functions: !
! a) Submits a job to NetBatch, !
! b) Interprets any errors returned by the Scheduler !
! and displays those details to the user. !
!----------------------------------------------------------- !
! STRUCTURE DEFINITIONS USED BY NB^JOB^SUBMIT !
--Startup message
STRUCT .startup^msg;
BEGIN
INT msgcode;
STRUCT default;
BEGIN
INT vol[0:3];
INT subvol[0:3];
END;
STRUCT infile;
BEGIN
INT vol[0:3];
INT subvol[0:3];
(continued)