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
FILE UPDATION: The method of modifying an old file with present information is termed as file updating. Master file: A master file is a file which is used as an author

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

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

REWRITE STATEMENT: As in the situation of a relative file, the REWRITE statement needs that the file should be opened in the I-O mode, and if the SEQENTIAL access mode is spec

RULES FOR SEARCH VERB: The rules apply for the SEARCH verb is as shown below: (1) The SEARCH verb can be applied only to a table that has the OCCURS clause and INDEXED phra

START STATEMENT: The START statement places the files to the initial logical record whose record key satisfies the condition specified by the KEY phrase. The access mode shoul

PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

Block Size: The normal practice is to group a number of consecutive records to form that is termed as a block or a physical record. The number of records in a block is frequen

Format for COBOL Programs: The COBOL is a high-level language. Therefore, a COBOL program can be executed on a computer for which a COBOL compiler exists. The compiler transla

Data Names and Identifiers:   The Data name provides reference to the storage space in the memory where the real value is stored. This value takes part in the operation whene