Sequential files with the variable-length records, COBOL Programming

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 fixed lengths or one or more records can hold variable number of table elements. In the later situation the table elements are defined with OCCUR....DEPENDING clause. 

 

Posted Date: 10/17/2012 8:07:06 AM | Location : United States







Related Discussions:- Sequential files with the variable-length records, Assignment Help, Ask Question on Sequential files with the variable-length records, Get Answer, Expert's Help, Sequential files with the variable-length records Discussions

Write discussion on Sequential files with the variable-length records
Your posts are moderated
Related Questions
Common form of the READ statements: Format 1 is the common form of the READ statements. Format 2 is used when the access mode is either random or dynamic. For illustration,

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

FILE DESCRIPTION- FIXED-LENGTH RECORDS: The normal characteristics of a file are explained in the file description (FD) entry of the DATA DIVISION.

PERFORM WITH UNTIL OPTION: The format is as shown below: Illustration:  A) Perform p-3 until i > 5. Here p-3 will be executed whenever i B)  Perform p-2 thru

Program for Sequential File Creation & Rewriting  We have to write a program to create a Length file with just two fields: l (Length) and l-c (Length-Code). Add a few records.

calculate simple interest

RULES FOR INDEXED TABLES: The rules of indexing a table with an INDEXED phrase are as shown below: (1) If indexing is completed for any one level of a table, then indexing

Example of Redefines clause: This illustration describes a sales record that may either contain the total amount of sale or the quantity (QTY) and UNIT-PRICE. The aim of such

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

WRITE statement: The WRITE statement for tape and sequential-disk files has the syntax shown below. WRITE            record-name      [  FROM    identifier   ] As a resu