Multiple choice technology mainframe

DISPLAY 'This is COBOL Test' The above statement is coded in a COBOL program. Where will the text be displayed, when this program is executed?

  1. The media/resource that is assigned to SYSPRINT DD name in JCL

  2. The media/resource that is assigned to SYSOUT DD name in JCL

  3. Always prints on Spool Screen

  4. Always prints on Printer

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

In COBOL, the DISPLAY statement sends output to the SYSOUT data set, not SYSPRINT. SYSPRINT is reserved for compiler listing and messages. The SYSOUT DD statement in JCL determines where this output gets routed (printer, spool, etc.).