🎴 Flashcard Mode

IBM Mainframe: JCL, COBOL, VSAM, and CICS

Card1 / 21
Mastered0
Review0
QuestionClick to flip

77 CTR PIC S9(4)V99 VALUE -1234.55. What will be the output of the statement DISPLAY CTR?

AnswerClick to flip back
A
12345N
💡 Explanation:

In COBOL, when displaying a signed numeric field (S9), the sign is often stored as an overpunch on the last digit (EBCDIC). For a negative value ending in 5, the '5' combined with a negative sign results in the character 'N'.

Change Mode