Why we need to use redefine clause when we can define the
variable seperately... what is actual need....

Answer Posted / kannan

The main use of redefines to reduce the memory allocation
for the temporary variables that is declared in WS section.
if two variables are declared in a program and if there is a
situation that the program wil use only one among that two
variables during execution depending on a condition then
redefines can be used. so that both the variable use the
same memory space and it reduces the unnecessary memory
allocation

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is it necessary that file needs to be opened in I-O mode for REWRITE?

987


What is a scope terminator give example?

831


I have File 1 occurs 5 times with Employee-ID,Employee-Name,Employee-Dept (EEE and MECH). I have File 2 occurs 10 times with Employee-ID,Employee-Name,Employee-Dept (EEE,CIVIL,CHEMICAL and MECH). In FIle 1 and FIle 2 , for matching Employee-DEPT (Only MECH) , we need to move entire records from file1 to file 2. We should not use 2D array. Your help is needed here.

1350


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

2205


Explain how to differentiate call by context by comparing it to other calls?

899


) what is the difference between AID and HANDLE AID?

1885


What is a SSRANGE and NOSSRANGE?

1112


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

865


Discuss about changing dataset name in proc.

955


) how do u code after getting data?

1789


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

902


How you can read the file from bottom?

870


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.

6090


How to use the same COBOL program in Batch and CICS on lines? explain with an example

2103


How do you get the data to code the BMS macro?

1692