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
COBOL Words: The COBOL word can be formed by using the characters as shown below: 0-9 A-Z (a-z) - (hyphen) The rules below should be hold in forming the COBOL words.

FILLER CLAUSE: Consider the statements as shown below: 1)  01    f    pic     x(80)  value    all "-". This statement origins a line of 80 characters filled with "-"

PROGRAM FOR ADD VERB: We have to write a simple program to elaborate the ADD verb. You can also use edit characters in the program. Identification division. Program- id.

RULES OF REDEFINES CLAUSE The rules shown below govern the use of the REDEFINES clause: (i) The level-number of data-name-1 and data-name-2 should be identical. (ii) Exce

Transaction file : A transaction file is a file which contains new records those changes to old records which are used to update the master file. The problem of file updatio

PROGRAM FOR SCREEN SECTION WITH FILES: identification division.   program- id.   environment division.          input-output section.   file-control.     select

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION: We have to write a program to create an Indexed Sequential File in a dynamic mode for Student particulars. Suppose just 3 fields:

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

Illustration of nested if statement: Consider the nested sentence which is as shown below: The IF-ELSE pairs in this sentence can be detected by applying the rule whic

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