View previous topic :: View next topic
|
Author |
Message |
sandeshgitte
New User
Joined: 08 Jul 2006 Posts: 4
|
|
|
|
Hi,
I have a doubt that has to be cleared. I have a amount field that is PIC X(13). I have to convert this to a PIC S9(11)V99 USAGE COMP-3 variable. After Converting this to COMP-3 I need to use another variable that will accumalate this COMP-3 variable.
Please do help me. |
|
Back to top |
|
|
a1javeed
New User
Joined: 10 Dec 2005 Posts: 20 Location: KUWAIT
|
|
|
|
hello
u can redefine the amount field as follows
01 amount pic x(13).
01 amt-r redefines amount 9(11)v99.
01 amt-c3 pic s9(11)v99 comp-3.
then
move amt-r to the amt-c3
hope this will help u...
regards
Javeed |
|
Back to top |
|
|
sandeshgitte
New User
Joined: 08 Jul 2006 Posts: 4
|
|
|
|
Thanks for the solution Mr Javeed. It worked. Hopefully you wont mind if I have more questions for you in the future.
Have a nice day |
|
Back to top |
|
|
|