View previous topic :: View next topic
|
Author |
Message |
knd_r Currently Banned New User
Joined: 18 Mar 2005 Posts: 48
|
|
|
|
hi,
can we redefines x(4) with 9(4)
bye,
ks reddy. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
ya u can, but only the problem will be if X94) is containing spaces and if u try to check some condition clause like the varibale of PIC 9(4) is compared with ZEROES, like
01 var1 pic X(4) value SPACES.
02 var2 redefines VAR1 pic 9(04).
and in code
if VAR2 is greater than ZEROES
...then i think in this case u will get run time erro like OC7.
correct me if i m wrong. |
|
Back to top |
|
|
subhasis_50
Moderator
Joined: 09 Mar 2005 Posts: 363 Location: Earth
|
|
|
|
Hi,
Kanak is right. |
|
Back to top |
|
|
knd_r Currently Banned New User
Joined: 18 Mar 2005 Posts: 48
|
|
|
|
hi,
but in real scenario, i dont know which data is present in x(4). then what will be the situation?
thanks,
ks reddy. |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
Quote: |
which data is present in x(4). |
EBCDIC data. |
|
Back to top |
|
|
|