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
Why is it necessary that file needs to be opened in I-O mode for REWRITE?
What is a scope terminator give example?
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.
Have you used comp and comp-3 in your project? And how?
Explain how to differentiate call by context by comparing it to other calls?
) what is the difference between AID and HANDLE AID?
What is a SSRANGE and NOSSRANGE?
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
Discuss about changing dataset name in proc.
) how do u code after getting data?
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How you can read the file from bottom?
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.
How to use the same COBOL program in Batch and CICS on lines? explain with an example
How do you get the data to code the BMS macro?