what is the advantage of using redefines instead of
delaring the variables ?
Answer Posted / m r reddy
--Redefines is used to re-use the storage space irrespective of the data type.
--Using redefines more than one field can re-use the same memory.
Ex: 01 a pic x(5) value 'xyz12'.
01 b redefines a pic x(3).
Here a=xyz12 value is stored and
b=xyz value is stored. B is reuse the A's Memory
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a SSRANGE and NOSSRANGE?
How do you define a variable of comp-1 and comp-2?
how to convert the recors form vsam file to db2 table tru file aid
Are you comfortable in cobol or jcl?
what is amode(24), amode(31), rmode(24) and rmode(any)?
Have you used comp and comp-3 in your project? And how?
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.
how do you reference the rrds file formats from cobol programs
What is the utilization of copybook in cobol? Could we utilize a similar copybook?
What is amode(31)
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
HOw can I get the negative sign while deduct high value from low value
What is comp-1 and comp-2?
What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?
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.