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

Answer Posted / subash

A file where all the records are of the same length is said to have fixed length records.
Advantage : Access is fast because the computer knows where each record starts.
Disadvantage : Using Fixed length records, the records are usually larger and therefore need more storage space and are slower to transfer (load or save).

One or more of the fields can be of differing lengths in each record, called variable length records

Advantages:
the records will be smaller and will need less storage space
the records will load faster

Disadvantages:

The computer will be unable to determine where each record starts so processing the records will be slower.

Is This Answer Correct ?    74 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you get the data to code the BMS macro?

1476


explain sorting techniques in cobol program?

686


What is the difference between structured cobol programming and object alternativelyiented cobol programming?

709


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

684


What the difference is between continue and next sentence?

657






What is the usage of comp fields in cobol?

658


How to know whether the module is dynamical or statistical?

652


2 input fles: 2 flat files, with different number of records. both are having unique key for each record and already sorted in ascending order . match these files using unique key and in output only matching key value has to be written. please procide cobol logic

2111


i want a program using by if, evaluate , string, unstring, perform, occurs?

4057


What type of SDLC u followed? Why?

1518


What is amode(31)

722


What is perform what is varying?

705


What is rmode(any) ?

686


how can i see junk values in dclgen or in hostvariable of comp ?

2544


Which is not true about evaluate statement

1572