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
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

OCCURS CLAUSE - PROGRAM: We have to write a program to demonstrate the occurs clause. Get names of the students and show them on the screen.  identification division.

UPDATING OF THE RELATIVE AND INDEXED FILES: The Sequential files are updated by creating a new master file from an existing old master file and a transaction file. Such an Upda

SEQUENTIAL FILE CREATION AND REWRITING: We have to write a program to create a student file with just two fields: sno i.e. Student Number and same i.e. Student Name. Add a few

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

PROGRAM TO FIND INTEREST ON BANK DEPOSITS: We have to write a program to find interest on deposits. The criteria is given below : identification division. program-

OPEN STATEMENT: Whenever a READ or a WRITE operation is executed on a file, then it should be open. The opening of a file may be completed with the help of the OPEN verb. With

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

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

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