Q:what is the difference between the variable length and
fixed lenght.how it varies in the cobol.

Answer Posted / krishnakumar

In JCL:
We have to code acutual lentgh + 4 Bytes for Variable
length files.For fixed length files we have to code actual
length.

in COBOL:
In FD Section we have to write
Recording Mode is F --> for Fixed length files,
Recording Mode is V --> for Variablelength files

Is This Answer Correct ?    8 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is length is cobol?

641


how to convert the recors form vsam file to db2 table tru file aid

2752


INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?

409


What is the Purpose of Pointer in the string?

637


What is cobol?

737






What is the usage of comp fields in cobol?

649


Can we change the password using ALTER? anyone tried and changed?

1538


how do you reference the variable block file formats from cobol programs

676


How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?

697


What is link edit in cobol?

737


How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?

728


What is the local-storage section?

675


How do we get current date from system with century in COBOL?

793


What is the difference between comp and comp-3 usage?

670


Explain what you understand by passing by value.

689