Here is the sample logic to submit JCL from the COBOL module. You need to write JCL steps to output the file in the COBOL Program. Then, assign this file to the internal reader of JCL. Here is a sample JCL and COBOL module that demonstrates how to invoke JCL from COBOL.
Also, Read Internal reader-COBOL and JCL.
How to Submit JCL from COBOL
//DD1 DD SYSOUT=(*,intrdr) --write your JCL to this file. or
//MYOUTPUT DD SYSOUT= whatever your internal reader is at your shop.
SELECT MY-OUTPUT-FILE ASSIGN MYOUTPUT.
FD MY-OUTPUT-FILE
01 OUTPUT-REC PIC X(80).
WORKING-STORAGE.
01 JCL-TABLE.
05 FILLER PIC X(80) VALUE
'//MYJOB JOB etc etc..... WRITE
OUTPUT-REC FROM JCL-CARD (SUB)






