View previous topic :: View next topic
|
Author |
Message |
Hemant B.
New User
Joined: 05 Oct 2006 Posts: 8
|
|
|
|
i have a data variable having pic clause s9(7)v9(2).
can i redefine above data type by another one mentioning
s9(9) comp-3. |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hi Hemant,
Yes you can redefine display items with comp-3.
But, I am afraid, when you use the values in your programmer, it will not give you expected results.
Always remember, redefines clause just makes the variable to start from the same locations in the memory nothing else! It doesn't make sure that the data type conversion happens automatically.
Happy redefining!!! |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
Hi,
Redefines will not give any problem. But Redefined field will not hold actual data. |
|
Back to top |
|
|
GIRIRAJ
New User
Joined: 26 Sep 2006 Posts: 1 Location: PUNE
|
|
|
|
yes u redefine |
|
Back to top |
|
|
surya_pathaus
Active User
Joined: 28 Aug 2006 Posts: 110
|
|
|
|
Hi,
For example s9(7)v9(2) field contain 3333333.33
If it is redefined with s9(9) comp-3 then this field will contain 3 3 3 3.
I am not sure why it is giving the above value.
But when I tested this I got the above value. |
|
Back to top |
|
|
Hemant B.
New User
Joined: 05 Oct 2006 Posts: 8
|
|
|
|
thanx |
|
Back to top |
|
|
|