What is different between variable length and fixed length?

Answers were Sorted based on User's Feedback



What is different between variable length and fixed length?..

Answer / saravanan

variable lenth means record should be in different format
(lenth).but the first 4 bytes only taken as a record lenth.
fixed lenth means we have declaring a record lenth.

Is This Answer Correct ?    6 Yes 0 No

What is different between variable length and fixed length?..

Answer / udaya bharathi

fixed length file contains same record length for all
records.but in variable length files length of the record
varies ,it can be useful in such cases we are not sure
about the length of the output file to be generated

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More COBOL Interview Questions

I know my query will return more than one row but I don't want cursor what should I do?

1 Answers  


what is filler and what is use of filler

3 Answers   Syntel,


I have two questions here. 1. How to read a flat file in reverse order? 2. How to read a VSAM KSDS file in reverse order? In both the cases we donot know the total number of records.

2 Answers   L&T,


how to convert vsam table into DB2 table?

1 Answers   IBM, Wipro,


waht is inspect verb? where it can be in real time?

1 Answers   Patni,






what is the difference between COBOL2 AND COBOL390?

0 Answers   L&T,


if a pic 9(3) value 354,b pic x(2) value '46' then a)a>b 2)a<b 3)error

8 Answers   Cap Gemini,


What will happen if a variable is declared as below.. Explain with an example? Working storage section:- 01 WS-VARX PIC X(10) VALUE 'ABCDEFGHIJ'. 01 WS-VARN REDEFINES WS-VARX PIC 9(5) VALUE '12345'. What will happen I am going to Display the WS-VARX and WS- VARN?

6 Answers   Xansa,


what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?

1 Answers   HCL,


Suppose, file A has 100 records and file B has 500 records. We want to write records common to both A and B into file C and records which are present only in either A or B into another file D. What should be the logic of Cobol program to achieve this?

7 Answers   Bank Of America, Mind Tree,


How do you reference the following file formats from cobol programs?

0 Answers  


what is lrec=f,what is difference between f,fb,v,vb?what is default value?how do we came to know that records are in f,fb,v,vb?

2 Answers   IBM, Wipro,


Categories