|
|
| Author |
Message |
karthikuma
Active User
Joined: 29 Mar 2005 Posts: 65
|
|
|
|
whether redefine supports value clause?
01 A
02 a-1 pic x(8)
01 B redefine A
02 b-1 pic x(5) value spaces.
what is the output.whether it will show error. |
|
| Back to top |
|
 |
References
|
Posted: Fri Apr 29, 2005 10:20 am Post subject: Re: Doubt on REDEFINES with Value Clause |
 |
|
|
 |
sribks2005
New User
Joined: 04 Apr 2005 Posts: 20 Location: Mysore
|
|
|
|
yes we get an error if we do like this.
The error message would be like given below.
==========================================
A "VALUE" clause was specified for an item that contained,or was subordinate to an item that contained, a "REDEFINES" clause. The "VALUE" clause was discarded
===========================================
But we can initialize the variable A with spaces. |
|
| Back to top |
|
 |
karthikuma
Active User
Joined: 29 Mar 2005 Posts: 65
|
|
|
|
| thankz a lot |
|
| Back to top |
|
 |
|
|