Give some advantages of REDEFINES clause?
Answers were Sorted based on User's Feedback
Answer / mahathiaz
1. You can REDEFINE a Variable from one PICTURE class to
another PICTURE class by using the same memory
location.
2. By REDEFINES we can INITIALISE the variable in
WORKING-STORAGE Section itself.
3. We can REDEFINE a Single Variable into so many sub
variables. (This facility is very useful in solving Y2000
Problem.)
| Is This Answer Correct ? | 23 Yes | 1 No |
can u give result for the fallowing example... 05 a pic 9(2) 05 b redifines a pic x(2). move 'xy' to b. display a,b.
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
What are differences between COBOL and java ? why we are giving more preference to COBOL ?
wht r the advantages of 77 level number ?
How you can delete a record from a ps file in cobol?
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?
Syntax for JCLLIB & JOBLIB???
How will 128 be saved in s9 (3) comp-3 How will 12 be saved in s9 (2) comp
Explain call by context by comparing it to other calls.
how to pass 100 to s9(4) how r they inserted ?
what are the isolation levels and where we use it in the db2 program
what is the difference between Normal vaiable and comp variable.