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
Why occurs cannot be used in 01 level in COBOL?
Difference between array and sub-script ?
how do you reference the variable unblock file formats from cobol programs
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are the different rules of SORT operation?
How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
What is Pic 9v99 Indicates in COBOL?
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
Write a program that uses move corresponding.
What is a scope terminator give example?
What are literals?
Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?
What is report-item in COBOL?