NetBatch Management Programming Manual
NetBatch Procedure Calls
NetBatch Management Programming Manual—522462-003
7-11
Sample C Program
Step 4: Change Job Name
Change job name MASTER-A to your own choice of name if MASTER-A conflicts with 
an existing production job in $ZBAT. Otherwise, delete job MASTER-A from $ZBAT. 
*CHANGE /"MASTER-A "/"NBJS-C-JOB 
"/ ALL
 2014 strncpy (submit_rec.actual_job_name, "NBJS-C-
JOB ",24
);
Step 5: Compile the Source File
End the EDIT session and compile the source file:
*EXIT
> C /IN TEMP.NBCSRC/ TEMP.NBCOBJ; SUPPRESS
Step 6: Test the Program
Test the program by running the compiled object:
> RUN TEMP.NBCOBJ
 Error 513 encountered.
 Job submitted to $ZBAT using NB^JOB^SUBMIT
 Job number : 2
 Job name : NBJS-C-JOB
Step 7: Delete the Submitted Job
> BATCHCOM $ZBAT; DELETE JOB NBJS-C-JOB
Job NBJS-C-JOB Jobnumber 2 deleted










