View previous topic :: View next topic
|
Author |
Message |
Mukesh.py Currently Banned New User
Joined: 22 Sep 2008 Posts: 17 Location: Chennai, India.
|
|
|
|
Hi All, can anyone tell me how to split the following :
01 WS-1
02 ALPHANM PIC X(6) VALUES '123ABC'.
02 NUMBR PIC A(3).
02 CHCTR PIC 9(3).
NUMBR <- 123
CHCTR <- ABC
if the code is changed as , then will it make any difference for the
solution?
01 WS-1
02 ALPHANM PIC X(6) VALUES 'ABC123'.
02 NUMBR PIC A(3).
02 CHCTR PIC 9(3).
Requirement being the same.
NUMBR <- 123
CHCTR <- ABC
Regards, |
|
Back to top |
|
|
hchinnam
New User
Joined: 18 Oct 2006 Posts: 73
|
|
|
|
Do you know what your asking.
If yes, can explain us what you want to do? |
|
Back to top |
|
|
Escapa
Senior Member
Joined: 16 Feb 2007 Posts: 1399 Location: IL, USA
|
|
|
|
Please try on your system and let us know too... |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Code: |
01 WS-1
02 ALPHANM PIC X(6) VALUES 'ABC123'.
02 FILLER1 REDEFINES ALPHANM.
03 NUMBR PIC X(3).
03 CHCTR PIC 9(3).
|
|
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
sorry, did not realize you were as confused as your are.
this would be correct:
Code: |
01 WS-1
02 ALPHANM PIC X(6) VALUES 'ABC123'.
02 FILLER1 REDEFINES ALPHANM.
03 CHCTR PIC X(3).
03 NUMBR PIC 9(3).
|
CHCTR will contain ABC
NUMBR will contain 123. |
|
Back to top |
|
|
Mukesh.py Currently Banned New User
Joined: 22 Sep 2008 Posts: 17 Location: Chennai, India.
|
|
|
|
Thanks dbzTHEdinosauer
I got the idea. |
|
Back to top |
|
|
|