Cobol Question:

How to execute a set of JCL statements from a COBOL program?

Cobol Interview Question
Cobol Interview Question

Answer:

Using EXEC CICS SPOOL WRITE (var-name) END-EXEC command. Var-name is a COBOL host structure containing JCL statements.


Previous QuestionNext Question
Give some advantages of REDEFINES clause?How do you submit JCL via a COBOL program?