50 pts.
 Submitting a batch job from a C program
Is it possible to call SMBJOB in a C program to submit a batch job? If not, is it possible to submit a batch job in a C program some other way?

Software/Hardware used:
ASKED: February 17, 2009  2:31 PM
UPDATED: May 4, 2009  10:22 PM

Answer Wiki:
I meant SBMJOB. Yes, you can. Use the system() call to execute a CL command in a C program. It can be found in the ILE C/C++ Run-Time Library Functions manual. SC41-5607-02. You can use it to execute your SBMJOB command. Works great. ////////////////////////////////////////// Hi, An alternative is to use Spawn() to submit a child JOB. You can found this function in the same manual.
Last Wiki Answer Submitted:  May 4, 2009  10:22 pm  by  mrlchile   50 pts.
All Answer Wiki Contributors:  mrlchile   50 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Hi

Can you use a call to QCMDEXC – that should be able to do a SBMJOB for you.

Regards,

Martin Gilbert.

 23,625 pts.