🎴 Flashcard Mode

Mainframe COBOL and JCL Programming

Card1 / 20
Mastered0
Review0
QuestionClick to flip

The following is Data Division entry 01 EMP-RECORD. 02 EMP-NAME. 04 FIRST-PART. 05 FIRST-NAME PIC X (10). 05 MIDDLE-NAME PIC X (10). 04 SURNAME PIC X(20). Which one of the following gives correct information about the above record description.

AnswerClick to flip back
A
It is correct.
💡 Explanation:

The COBOL record description is syntactically correct. Level numbers increase from 01 to 02 to 04 to 05, showing proper hierarchical nesting. FIRST-PART (04) contains two elementary items (05), and SURNAME (04) is a sibling to FIRST-PART. There's no requirement that sibling items have different PIC clauses, level 03 is not missing (the hierarchy is 01-02-04-05), and group items (like EMP-NAME and FIRST-PART) don't need PIC clauses - only elementary items do.

Change Mode