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
What is the LINKAGE SECTION used in COBOL?
What is the use of intialize verb?
I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.
how to refer the data field?
What rules are to be followed while using the corresponding options?
What is the difference between Global and External Variables?
How arrays can be defined in COBOL?
) how do u code after getting data?
i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
how to convert the recors form vsam file to db2 table tru file aid
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?
Which division and paragraphs are mandatory for a COBOL program?