Page 1 of 1

Can we submit a job from cobol Program, if yes, how ?

Posted: Mon Jan 20, 2014 2:03 pm
by Kanika
Hello,

Can we submit a job from cobol Program, if yes, how ? Please help.

Re: Can we submit a job from cobol Program, if yes, how ?

Posted: Mon Jan 20, 2014 5:40 pm
by zprogrammer

Re: Can we submit a job from cobol Program, if yes, how ?

Posted: Tue Jan 21, 2014 4:42 am
by Robert Sample
Yes, as Pandora-Box alluded, you can open an output file in COBOL that points to the internal reader, write lines of JCL to that file, and submit jobs to the system. Note, however, that there are some things to be aware of -- such as ending a job if you are running in CICS, inheritance (or not) of user id information, and having job statement errors will cause the job to flush without ever starting.

Re: Can we submit a job from cobol Program, if yes, how ?

Posted: Wed Jan 22, 2014 2:26 am
by dick scherrer
Once you have tested your program and have it working as you want (generating the desired JOB stream), you need to talk with someone on your system and ask for the rules for using the Internam Reader. This varies from site to site.