Question: how to run jcl from cobol program?
Answer: Let us the program is TEST and JCL you want to submit from program is A.B.C(MEM).//STEP1 EXEC PGM=TEST//INPUT DD DSN=A.B.C(MEM)//SUB DD SYSOUT=(*,INTRDR)In the program define these two file (Both should have a LRECL of 80). Read the input record from A.B.C(MEM) ono by one (JCL STATEMENTS) and write into SUB file.