WE HAVE 5 DIFFERENT RECORDING MODE IN COBOL.FIXED,
FIXEDBLOCK, VARIABLE, VARIABLEBLOCK AND UNDEFINED.
WHAT IS THE DIFFERENCE AMONG ALL AND WHICH TYPE OF FORMAT
SHOULD BE USED WHEN
Answer Posted / vijay
Hi as you specified we have five types of record formats
when u know exactly the length of record lay out then you
can specify fixed or fixed block.Then system will allocate
the fixed lenth for the record. when u enter data it takes
exactly fixed lenth as u specified, if u give data less
than the length specified also then system will allocate
the fixed lenth only . Memory will be wasted.
When you are not sure of record format i:e if u specify the
length of a record is x(156) , then record may be of 156
or it may be less than that.
more record length it wount accept,
same record lenth as specified accept ,
record which is of less than specified size accept.
here memory wount be wasted.System will allocate memory
based on record data u supply.
undefined format we usually use for load libs. we are not
sure how long the data will be. then we will specify
undefined.
| Is This Answer Correct ? | 21 Yes | 4 No |
Post New Answer View All Answers
How do you get the data to code the BMS macro?
Name the divisions, which are available in a cobol program?
What is the difference between goback, stop run and exit program in cobol?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this
Explain how to differentiate call by context by comparing it to other calls?
What is comp-1 and comp-2?
if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.
What is the utilization of copybook in cobol?
How to print 10 to 1 if the input have only 10 digit number?
What is link edit in cobol?
What are the cobol coding sheets?
What are the pertinent COBOL commands?
How to get the last record in vsam file in cluster? And how can you get the kids file records into your cobol program?
what happens if parmparameter passes zero bytes to the program