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

Answer Posted / sushant chavan

fixed length:-
1.Every record in the file has exactly same size (in byte)
2.It take huge memory.
3.Access become fast.
4.Computer knows exact location of records so easy access.
5.slow in transferring the records it has large size.

Variable length:-
1.Different record in the file have different size.
2.It take least memory.
3.access become slow.
4.computer does not know exact location of record so slow access.
5.fast transferring as it is small in size.

Is This Answer Correct ?    93 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

2723


What is a report item?

741


What rules are followed by the search verb.

638


Write a program to explain size error.

675


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8160






Can you please let me know the centre name of INS certification in Kolkata.

1715


How do you reference the fixed block file formats from cobol programs

703


There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

932


What is the Purpose of POINTER Phrase in STRING command in COBOL?

721


What is report-item in COBOL?

711


Name the sections present in data division.

701


What are literals?

630


What is comp-1 and comp-2?

764


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1805


Difference between cobol and cobol-ii?

704