Record description for the variable-length records, COBOL Programming

Record Description for the Variable-length Records:

When the variable- length records consists of records of various lengths, each record type is to be explained at level 01 following the FD entry for the file. The variable part is defined with the OCCURS...DEPENDING clause.

FD VARIABLE-FILE

            RECORD CONTAINS 40 TO 92 CHARACTERS

            BLOCK CONTAINS 933 TO 1024 CHARACTES

            LABEL RECORDS AERA ATANDARDA

            RECORDING MODE IS V

            VALUS OF INDENTIFICATION IS "VARFILE".

01 VARIABLE-RECORD.

            02 ACCOUNT-NUMBER    PIC 9(6).

            02 NAME  PIC  X(20).

            02 NO-OF-PAYAMENTS    PIC 9.

            02 PAYMENTS    OCCURS 1 TO 5 TIMES DEPENDING ON

               NO-OF-PAYMENTS   INDEXED BY TAB-INDEX.

               03 DATE-OF-PAYAMENT   9(6).

               03 AMOUNT-OF-PAYMENT  9(5)V99.

Posted Date: 10/17/2012 8:08:41 AM | Location : United States







Related Discussions:- Record description for the variable-length records, Assignment Help, Ask Question on Record description for the variable-length records, Get Answer, Expert's Help, Record description for the variable-length records Discussions

Write discussion on Record description for the variable-length records
Your posts are moderated
Related Questions
PROGRAM FOR MULTIPLY VERB: We have to write a simple program to elaborate MULTIPLY verb. You can also use the edit characters in the program. Identification division. Pr

Illustration of simple sort verb: Illustration: Suppose that we have a card file with the following records description in the data division. The names of the work fil

CLOSE statement: The simplified syntax of the CLOSE statement is as shown below:   CLOSE          file-name-1   [WITH   LOCK   ]                         [  , file-

can we move spaces to numeric field

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

PERFORM WITH VARYING OPTION: The format is as shown below:

MERGE VERB WITH OUTPUT PROCEDURE: Like the sort verb, the merge verb can also have an output procedure. The syntax of the MERGE verb is as shown below:   The r

Currency Sign - edit characters for numeric data: $ (Currency Sign): The single currency sign can appear at the leftmost place of a picture. In that situation the $ cha

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