In COBOL, what is the purpose of a level-number when defining group data items?

  • To control the scope of the data item
  • To identify the data item as a group or elementary item
  • To indicate the level of nesting in the group hierarchy
  • To specify the physical length of the data item
The level-number in COBOL is used to distinguish between group-level and elementary-level data items. A level-number of 01 indicates an elementary item, while higher-level numbers indicate a group item.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *