Posts

Showing posts from October, 2015

Levels Numbers in COBOL

level number are play very important role in declaration of the variables in the COBOL. level number are describe the hierarchy of data in the COBOL. level number available are   01 to 49 , 66, 77 and 88. level number are two types based on the usage. General purpose level number. Special purpose level number. General purpose level number: In this level number are start with low number 01 and  maximum number is 49. Based on this level number, the data items/variables are divided different categories. 1.Individual data item. 2.Group data item. 3.Elementary data item. Individual data item: it is a data item which will be the only one variable declaration. it has picture clause and no sub items. individual data item are unique number in the  program. example: 01              WS-NAME       PIC             A(10). 02              WS-CLASS      PIC             9(02). 49              WS-RANK     PIC                9(01). Note : there is no elementary  data ite