01 Group variable.
02 a pic 9(5) Value is 12345.
02 b redefines a.
Display b .
suppose if b contains some value which was declared in the program elsewhere(before redefines) ... and if we display the value of b after redefining .. will it be 12345 or the value of b...(think that b has a value of 6789.)
i mean to ask that it will only take the storage area only or value of the storage area that it contains..
What thanooz and Karthikt said are both true, coming back to ur Q.
suppose if b contains some value which was declared in the program elsewhere(before redefines) ...
This can never happen as u cannot define a variable twice, u wud get an error like what thanooz said. The storage area can contain only one value at a time, suppose if u have 12345 in it originally, both A and B will have it . Unless down in Procedure Division u move another value to it.