Interview Questions   Tutorials   Discussions   Programs   

JCL - How do you submit JCL via a Cobol program?

asked mar September 8, 2014 11:44 AM  

How do you submit JCL via a Cobol program?


1 Answers

answered By Mswami   0  

In your JCL define as //JOBA JOB 1111, JOB1 //STEP01 EXEC PGM=PROG1 //ddname DD SYSOUT=(*,INTRDR)....and your COBOL(PROG1) should look like this SELECT JCL-FILE ASSIGN TO ddname. Open this file and write the JCL statements into this file. Example: MOVE '//TESTJOB JOB 1111,VISVEISH' TO JCL-REC.MOVE '//STEP01 EXEC PGM=IEFBR14' TO JCL- REC and close this file. Then TESTJOB will be submitted.

   add comment

Your answer

Join with account you already have



Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!