File- section and working-storage section, COBOL Programming

File- Section &Working-Storage Section:

a) FILE SECTION:

The FILE SECTION includes the explanation of all data items that must be read from or written onto some external file.

b) WORKING-STORAGE SECTION:

The data items that are developed internally as intermediate result as well as the constants are explained in this section of the DATA DIVISION.

  The format of the DATA DIVISION is as shown below:

    DATA DIVISION.

    [FILE SECTION.

    File section entries.

    ......  

    ......]

    [WORKING-STORAGE SECTION.

     WORKING-STORAGE ENTRIES.

     ......

     ......]

All the section names as well as the division name should be coded as the margin A entries,

Each section of the DATA DIVISION is optional that means that a section may be omitted if there is no data which may be explained in a specific section. It is important to note that the sections to be included should appear in the order as shown above.

Posted Date: 10/16/2012 3:45:32 AM | Location : United States







Related Discussions:- File- section and working-storage section, Assignment Help, Ask Question on File- section and working-storage section, Get Answer, Expert's Help, File- section and working-storage section Discussions

Write discussion on File- section and working-storage section
Your posts are moderated
Related Questions
PROGRAMS FOR REDEFINES CLAUSE: We have to write a simple program to explain the REDEFINES clause at 01 level. identification division. program- id. Redef. environment

SEQUENTIAL FILES WITH THE VARIABLE-LENGTH RECORDS: The Magnetic - tape or disk files can hold variable-length records. In this situation the file can have records with various

Structure of a COBOL Program: Every COBOL program should have the 4 divisions in the order in which they are specified below: 1. Identification division 2. Environment D

SIGN CONDITION:   The sign condition establishes whether or not the algebraic value of an operand is negative, positive or zero. The operand can be either the numeric identif

COMPOUND CONDITION: The two simple conditions can be connected by the logical operators AND or OR to form a compound condition (also termed as combined condition). When two co

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

NESTED IF STATEMENT:   The then and else statement of an IF statement can hold other IF statements. The involved IF statements in their turn may also hold other IF statements

Direct Organization: Besides the relative or indexed organization, also a direct access file can be designed to have what is termed as direct organization.  In this organizati

RENAMES CLAUSE: At times re-grouping of an elementary data items in a record may be essential so that they can belong to the original as well as to the latest group. This is o

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION (RANDOM MODE): We have to write a program to create an Indexed Sequential File in random mode for Student particulars. Suppose jus