Level numbers - cobol programming, COBOL Programming

LEVEL NUMBERS:

The COBOL makes use of the level number concept to explain the hierarchical data structure.

A level number is a 2 digit number. The permitted level numbers are 01 - 49, 66, 77 and 88.

All the variables are declared in the working-storage section by using appropriate level numbers. 

The elementary data item can acquire either 01 or 77 as its level number. In the COBOL a division is made between the elementary and group data items. A few elementary data may be joint to form a group.

For illustration, the DAY, MONTH & YEAR may be 3 elementary data items. These may be joint to form a group data named DATE. The association may be shown pictorially as shown below:

 

2061_level number.png

It may be noted that the memory space referred to by the DATE is the combined memory space for DAY, MONTH &YEAR. The benefits of such a grouping are very clear. The programmer can now refer to the individual elementary items DAY, MONTH, YEAR or the group item DATE. An elementary data item is however the one which the programmer would always like to refer to as an entire and not in parts.

Posted Date: 10/16/2012 4:21:07 AM | Location : United States







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

Write discussion on Level numbers - cobol programming
Your posts are moderated
Related Questions
Major difference between file and array how does record read from array and file why we are not preparing array for real time

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION: We have to write a program to create an Indexed Sequential File in a dynamic mode for Student particulars. Suppose just 3 fields:

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

PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :

Comparison of Nonnumeric Operands: A nonnumeric operand can be compared to the other nonnumeric operand according to the rules as shown below: (i) Fields of Equal Sizes:

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

Abbreviation: The Consecutive relational conditions in a compound condition can be abbreviated in many cases as shown: (i) When the subjects in the consecutive relational c

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if

CLASS CONDITION:   The class condition establishes whether or not the value of the operand is numeric or alphabetic. The operand is numeric if it contains only the digits 0 t

File volatility: File volatility associates to the number of times the updating of records are needed during some time period. File interrogation: Some files hold re