RE: Under what special condition can we use EXEC state...
Exec statement can be used in the Embeded COBOL program. That is either by the COBOL DB2 or COBOL IMS programs. EXEC SQL means DB2 query cursor etc can be defined. EXEC DLI is used for IMS programs.
RE: Under what special condition can we use EXEC state...
EXEC is a keyword which is used to tell what PROCEDURE/PROGRAM to execute. To analyze a JCL just type F ALL 'EXEC' and we can notice what are all the procedures and programs that the JCL executes......