🎴 Flashcard Mode

Mainframe Programming Essentials: CICS, COBOL, JCL, and Natural

Card1 / 20
Mastered0
Review0
QuestionClick to flip

Consider the following piece of code: IF NOT INPUT-EOF IF INPUT-REC-TYPE = '55' PERFORM 2100-PROCESS-WTN ELSE NEXT SENTENCE END-IF ADD +1 TO INPUT-COUNT. PERFORM TEST-1 If the value INPUT-REC-TYPE = '00' then what will happen to the value of INPUT-COUNT?

AnswerClick to flip back
A
Will not change
💡 Explanation:

In COBOL, NEXT SENTENCE immediately transfers control to the next sentence following the period. Because ADD +1 TO INPUT-COUNT is inside the same sentence (terminated by the period after TEST-1), transferring control to the next sentence bypasses the increment logic, leaving INPUT-COUNT unchanged.

Change Mode