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


Please Help Members By Posting Answers For Below Questions

What is a SSRANGE and NOSSRANGE?

1092


How do you define a variable of comp-1 and comp-2?

894


how to convert the recors form vsam file to db2 table tru file aid

2974


Are you comfortable in cobol or jcl?

794


what is amode(24), amode(31), rmode(24) and rmode(any)?

882






Have you used comp and comp-3 in your project? And how?

2185


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.

1943


how do you reference the rrds file formats from cobol programs

1123


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

930


What is amode(31)

899


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

893


HOw can I get the negative sign while deduct high value from low value

1994


What is comp-1 and comp-2?

922


What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

897


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.

6073