View previous topic :: View next topic
|
Author |
Message |
vampire
New User
Joined: 12 Oct 2009 Posts: 15 Location: Pune
|
|
|
|
I have a variable ABC of format PIC S9(9)
On moving spaces into ABC, getting the result is 0.
MOVE SPACES TO ABC.
DISPLAY ABC.
Result: 0
What is the reason for this??
Please explain?
Thanks. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
What is the reason for this?? |
Because the designers made it work this way. . .
Even though it "works this way", it should be unacceptable to move spaces to a numeric-defined field. It is a very poor programming practice. |
|
Back to top |
|
|
|