Q:what is the difference between the variable length and
fixed lenght.how it varies in the cobol.
Answers were Sorted based on User's Feedback
Answer / 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 ? | 95 Yes | 10 No |
Answer / 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 |
Answer / sruthi
Fixed length means the length of all records in the file is
same.so we code record length is x chrs
where as in variable length means the length of records are
varying from each other. so we code as record length is x
to y chars
Is This Answer Correct ? | 31 Yes | 22 No |
hi,
vareable length record is the record contain different
format(length) but the first 4 bytes taking length of record.
the fixed length record must be declaring length otherwise
throw the error.so after fill the records md fields fillup
th e filler clause.
Is This Answer Correct ? | 39 Yes | 34 No |
Answer / thiyagarajan
if we didnt mention length then it is variable length,if we
declare the size then it is fixed length
Is This Answer Correct ? | 20 Yes | 16 No |
Answer / boopathi
variable length is nothing but. we declare our
conviniance.but fixed lengtn we do not change
Is This Answer Correct ? | 27 Yes | 29 No |
Answer / ragini roy
Fixed length strings, storage space required is length of string and range of values is 1to 65400 , characters, whereas the variable string length, storage space required is length +10 bytes and range of values is 0 to billion characters
Is This Answer Correct ? | 0 Yes | 2 No |
Answer / manonmani.r
variable length is changed in dynamic variable creation.but
fixed lenth is mentioned in static variable creation.
Is This Answer Correct ? | 9 Yes | 12 No |
Answer / 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 |
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
What are 77 levels used for?
Can a REDEFINES clause be used along with an OCCURS clause? if yes, 01 WS-TABLE. 03 WS-TABLE-EL OCCURS 5 TIMES PIC X(1) VALUE 'A'. 03 WS-EX REDEFINES WS-TABLE-EL PIC X(5). What can you expect? if no,why?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
hai friends ,i have HSBc exam on this sunday,my platform is Mainframe,i have 1 year exp,pls any one send me placement papers of Hsbc and technical questions on mainframe
6 Answers Citi Bank, CitiGroup, HSBC, iNautix, Wipro,
What is the utilization of copybook in cobol?
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
1.Can we define condition-name conditions in FD entry.
how many bytes does s9(7)COMP-3 field occupies?
How do you get the data to code the BMS macro?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?
Can anybody give me example of subscript and index