DBA > Job Interview Questions > JOB CONTROLL LANGUAGE (JCL) Interview Questions

How do you submit JCL via a COBOL program?

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

How do you submit JCL via a COBOL program?

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

(Continued on next question...)

Other Job Interview Questions