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
Illustration of indexed tables: Index items defined through the INDEXED phrase of the OCCURS clause are one type of indexes. There can be other type of index items that are de

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.

INPUT AND OUTPUT PROCEDURE IN SORT STATEMENT: The common format of the SORT statement can write as shown below: The format of the RELEASE statement is as shown be

IF ... ELSE STATEMENT: We are familiar with an easy form of the IF statement. The common form of the IF statement is as shown below: Each of the statement-1 and statem

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

Example of If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

Example of Open statement: Illustration: The OPEN INPUT TRANSACTION, OLD-MASTER OUTPUT NEW-MASTER. The illustration represents that there are two input files named the

File Description for the Relative and Indexed Files: The FD entry for a relative or an indexed file is similar to that of a sequential file. Some compilers do not permit varia

Numeric -   Literals : The numeric literal can be created with the help of digits only. It can have a sign (+ or -) and can also have a decimal point. If no sign is specifi

CONDITIONS-NAME CONDITION:   The condition name is an entity which itself is a condition and these can have either a true or false value. Though, a condition name cannot be d