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
Edit Characters for Numeric Data: The characters below can be used in the PICTURE clause to indicate the editing.   Z    *  $  -    +    CR    DB    .    ,    B    O    /

Buffers: The Modern computers are able of handling I-O operations independent of the CPU by means of the hardware termed as data channel. For illustration, if two buffers a

ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold

Illustration of Perform with varying option: A) Perform para-3 varying the k from 1 by 1 until k > 10. Here para-3 will be constantly executed 10 times (For k=1,2,3, .....1

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

PROGRAM FOR PERFORM ...UNTIL We have to write a program to find the sum of "n" natural numbers. Identification division. Program- id. PerfUntil. Environment division.

INPUT-OUTPUT SECTION: This section holds information regarding the files to be used in the program. There are 2 paragraphs in this section- FILE-CONTROL & I-O-CONTROL. The

FD Entry for variable-length Records: The RECORDS CONTAINS and BLOCK CONTAINS clause are quite dissimilar in the case of files with variable- length records. The syntax of the

77 level used for- It is Elementary level item. it Cannot be subdivisions of other items or cannot be qualified, or they can be subdivided themselves.

Illustration of Multiply verb: (a)  MULTIPLY A BY B. In this situation the value of A & B will be multiplied and the product will be stored in B.  The decimal point locatio