View previous topic :: View next topic
|
Author |
Message |
mohandotb
New User
Joined: 06 Aug 2006 Posts: 1
|
|
|
|
I redefined variable A as a variable B 9(9).
Now I move B to C 9(9)
What happens in this case. |
|
Back to top |
|
|
prashanth1
New User
Joined: 27 Sep 2006 Posts: 47 Location: Hyderabad
|
|
|
|
my understandings for the given problem is
C contain the value of B.
Pls Correct Me , If I Wrng |
|
Back to top |
|
|
azshukla
New User
Joined: 31 May 2006 Posts: 9 Location: Pune
|
|
|
|
when you are redefining a variable, as here you are redefining A as B , both A and B will be pointing to the same address space.. so what ever is the value is there in that addressspace will be present in both the variables A and B. Now if you are moving it in C, address apcae of C wil also have the same value.. means at the end all three variable will have the same value.
redefining in working storage works same as SET ADDRESS OF in procedure division. |
|
Back to top |
|
|
|