Example of level numbers - cobol programming, COBOL Programming

Example of Level numbers - cobol programming:

To explain the hierarchical structure introduced above, the concept of the level number is employed in COBOL.

The most broad group should have the level number 01. The initial subdivisions can have any level number between 02 and 49. More subdivisions must follow the similar range with the restriction that an item cannot have a level number less than or equal to the level numbers of the group which may include it. However a group involves all the elementary data or smaller groups beneath it until a level number equal to or less than the level number of the said group is encountered. The illustrations reveal the concept of the level numbers.

1936_Example of Level numbers.png

The group DATE that was shown former in the pictorial form is described in the first illustration. In the second illustration PAY is the most comprehensive group that has three subdivisions, namely, the GROSS-PAY, DEDUCTIONS &NET-PAY. The GROSS-PAY is again subdivided into BASIC, DEARNESS & HOUSE-RENT. In similar way the deductions are further subdivided into the PF-DEDUCT and IT-DEDUCT. It may be noted that the elementary data items are BASIC, DEARNESS, HOUSE-RENT, PF-DEDUCT, and IT-DEDUCT & NET-PAY. The structure can be pictorially shown below: 

410_Example of Level numbers1.png

Many times, in a hierarchical data structure like this, the programmer may not need a data item to be referred to in the PROCEDURE DIVISION. This situation usually arises when a group and only few of its subdivisions are to be used in the program. The remaining subdivisions do not require to be used explicitly. In such cases the word FILLER may be used to name data to which the programmer does not wish to assign a specific name. FILLER can be used as many times as needed.

Posted Date: 10/16/2012 4:23:37 AM | Location : United States







Related Discussions:- Example of level numbers - cobol programming, Assignment Help, Ask Question on Example of level numbers - cobol programming, Get Answer, Expert's Help, Example of level numbers - cobol programming Discussions

Write discussion on Example of level numbers - cobol programming
Your posts are moderated
Related Questions
I need help with a COBOL programming assingment. I have started the program but I need help completing the program. I have 5 errors. Here is the question. 10. Suppose your company

UPDATING OF THE RELATIVE AND INDEXED FILES: The Sequential files are updated by creating a new master file from an existing old master file and a transaction file. Such an Upda

Evaluate is like a case statement & Evaluate  stamenet can be used to replace nested Ifs. The difference b/w EVALUATE and case is that there is no 'break' is required for EVALUATE

FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

Example of If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

CR and DB (Credit and Debit Sign): The two characters that is CR or DB symbol may appear only at the rightmost place of the picture. They are similar to the minus sign edit ch

MOVE CORRESPONDING: It is frequently required to move some of the data items of one group to some other data items in the other group. If the names of the equivalent data item

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

PICTURE specification: The size of a group item is equivalent to the total of the sizes of all the subordinate elementary items. The group item class is alphanumeric. The i