Data division, COBOL Programming

Data Division:

The Data Division is a part of the COBOL program where every data item processed by the program is described.

It is very important to note that unless a data item is explained in the DATA DIVISION, it cannot be used in the procedure division.

The Data Division is divided into a number of sections like Working-storage section, File Section, Linkage section, Screen section, and Report Section. Depending on the use of the data item, it should be defined in the proper section.

 

Posted Date: 10/16/2012 3:44:46 AM | Location : United States







Related Discussions:- Data division, Assignment Help, Ask Question on Data division, Get Answer, Expert's Help, Data division Discussions

Write discussion on Data division
Your posts are moderated
Related Questions
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

ON SIZE ERROR OPTION:   If after an arithmetic expression, the result exceeds the highest value which can be accommodated in the result; this error is termed as size error. T

Example of Move corresponding: Consider the DATA DIVISION entries shown below. Suppose it is needed that the data stored in the 4 fields of the PAY_REC should be

WRITE statement: The WRITE statement for tape and sequential-disk files has the syntax shown below. WRITE            record-name      [  FROM    identifier   ] As a resu

Rules for Simple sort verb: The work file is to be defined by a sort elaboration entry (SD entry).The format of SD entry is as shown below. The rules below should be taken

BLANK WHEN ZERO: BLANK WHEN ZERO is an editing clause that may be used along with a picture. This will set the whole data item to blanks of its value is equal to zero. Though,

DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

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 :

Examples - Edit characters for numeric data: The following illustration illustrates the use of Z editing characters. The character b is used to indicate the space character an

/ (Slash Insertion): The edit character slash (/) also termed as virgule or stroke, may appear anyplace in the picture. When used, it will be inserted. More than one slash can