Multiple choice technology mainframe

Can we execute a COBOL program both from an Online Program (CICS) and Batch Program (JOB)?

  1. Yes, Always Possible

  2. Yes, Only when the COBOL program contains CICS and Batch common verbs/statements

  3. No. Never Possible

  4. None of the above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

A COBOL program can execute in both CICS (online) and batch (JCL) environments, but only if it avoids environment-specific statements. It must use common verbs that work in both contexts, avoiding CICS-specific commands like EXEC CICS or batch-only constructs.