RAMESH KRISHNA REDDY mainframe discussion forum - cobol, db2,cics,jcl,file-aid,changeman,interview questions
Online Tutorials   | PREV  | TOP  | NEXT



DRONA SERIES
COBOL STUDY MATERIAL


ELEMENTARY GROUP DATA ITEMS



   
 

ELEMENTARY GROUP DATA ITEMS






ELEMENTARY GROUP DATA ITEMS An elementary data item is a data item which does not have any subordinate items and it has PICTURE clause. A data item which has subordinate items is called Group Item. Group Item are defined using level numbers ( 01 to 49 ). Below picture explain, difference between elementary item and group item. Group data item, elementary data item Elementary data items can be defined with any of the level numbers 01 – 49, 77. elementary data item example To represent relation between group and elementary items, level numbers are used in COBOL. Available level number are 01 to 49. Below example shows, how we can define a group item for record shown in previous page. group elementary data item example Till now, we have seen how we can define elementary data items and group data items. Where we need to code these data items? We need to code these group and elementary items either in FILE SECTION ( if we are using files in the program) or in WORKING-STORAGE SECTION. example defining data item in FILESECTION WORKING STORAGE SECTION Data items defined in FILE SECTION & WORKING-STORAGE SECTION can be used in PROCEDURE DIVISION program logic.
    

NEXT CHAPTER TOPIC : COBOL


                                   



Previous chapter in COBOL tutorial Starting of COBOL tutorial Next chapter in COBOL tutorial


Visit COBOL books section in this site for good books




Home | Donations | Online Tutorials | Books | Entertainment | Contactme | privacy |  sql tutorial | jcl interview questions | JCL Tutorial | JCL Tutorial - chapter1 | JCL Tutorial - chapter2 | JCL Tutorial - chapter3 | JCL Tutorial - chapter4 | JCL Tutorial - chapter5 | JCL Tutorial - chapter6 | JCL Tutorial - chapter7 | JCL Tutorial - chapter8 | JCL Tutorial - chapter9 | JCL Tutorial - chapter10 | JCL Tutorial - chapter11