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

What are the different rules to perform a Search?

619


Write a program to explain size error.

677


what happens if parmparameter passes zero bytes to the program

1667


How do you differentiate between cobol and cobol-ii?

658


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10633






Are you comfortable in cobol or jcl?

643


i need a small 3d program using inline and outline.

1640


how do you reference the esds vsam file formats from cobol programs

634


How do you code cobol to access a parameter that has been defined in jcl? And do you code the parm parameter on the exec line in jcl?

702


What is report-item in COBOL?

711


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1846


How you can characterize tables in cobol?

721


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1808


how do you define single dimensional array and multidimensional array in your cobol?

678


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1958