View previous topic :: View next topic
|
Author |
Message |
coria
New User
Joined: 09 Oct 2006 Posts: 36
|
|
|
|
Hi All,
format is like:
Code: |
A X(8)
B S(9)V9(3) USAGE IS DISPLAY
C S9(12)V9(3) USAGE IS COMP-3 |
I want move A to B and accumulate B with C, the results are to be stored in C.
confusing about this kind of operation...
Thanks,
Coria Xu |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Would you like to reconsider the PIC for B? |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi !
Using PIC-X is a little bit dangerous for the afterwards computation.
So field A could be something like "123A9G"
Regards, Umeysan |
|
Back to top |
|
|
vasanthkumarhb
Active User
Joined: 06 Sep 2007 Posts: 275 Location: Bang,iflex
|
|
|
|
Check and validate the variable A for numeric, if it is numeric move that variable in to working-storage variable, having pic 9(8), take thi variable and then move it to Variable B which is mentioned above. since its stored in numeric EBCIDIC format, we can use that variable for COMP or COMP-3 variables.
Let me knw more info from Cria..
Thanks,
Vasanth......... |
|
Back to top |
|
|
|