NetBatch Management Programming Manual
Sample Programs
NetBatch Management Programming Manual—522462-003
C-3
Sample C Program
Step 5: Compile Source File
End the EDIT session and compile the source file:
*EXIT
> C /IN TEMP.CSRC/ TEMP.COBJ; SUPPRESS
Step 6: Test the Program
Test the program by running the compiled object:
> RUN TEMP.COBJ
Job submitted to $ZBAT using SPI
Job number : 5
Job name : C-JOB
Job status from $ZBAT using SPI
Selpri : 3
Class : OPERATIONS
Step 7: Delete the Submitted Job
> BATCHCOM $ZBAT; DELETE JOB C-JOB
Job C-JOB Jobnumber 5 deleted