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
) How do u handle errors in BMS macro?
What is the difference between comp and comp-3?
How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that
What is a report item?
how to convert the recors form vsam file to db2 table tru file aid
What are all the divisions of a COBOL program?
What is the difference between goback, stop run and exit program in cobol?
What are the different rules to perform a Search?
Can we redefine the field of x(200) to less than 200?
here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?
What is the Purpose of POINTER Phrase in STRING command in COBOL?
Whats the difference between search & search ALL?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
What is the difference between external and global variables in COBOL?
How to use the same COBOL program in Batch and CICS on lines? explain with an example