🎴 Flashcard Mode
Mainframe Computing: CICS, VSAM, and COBOL
Card1 / 20
Mastered0
Review0
QuestionClick to flip
Suppose TOTAL-OUT has a PIC of X(5) and we code move '0' to TOTAL-OUT. What would be the content of TOTAL-OUT be at the end of the move?
AnswerClick to flip back
A
0bbbb
💡 Explanation:
In COBOL, moving data to an alphanumeric (X) field left-justifies the content and pads with spaces on the right. Moving '0' to X(5) gives '0 ' (0 followed by 4 spaces), represented as '0bbbb' where 'b' denotes blank space.