View previous topic :: View next topic |
Author |
Message |
sushshibu Beginner
Joined: 21 Jul 2004 Posts: 3 Topics: 3 Location: chennai
|
Posted: Fri Aug 13, 2004 8:17 am Post subject: Is 'S' a editing character? |
|
|
Is 'S' a editing character. My reason for questioning is if I give the pic clause of a data item to be
77 QTY PIC S9(3) SIGN LEADING SEPARATE.
And on execution the result I am getting is
-123
which means I am asigning only 3 storage locations but my sign is taking up an extra storage space, so ultimately I guess it has to be a editing character. Am I correct? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Fri Aug 13, 2004 10:32 am Post subject: |
|
|
Instead of
Code: | 77 QTY PIC S9(3) SIGN LEADING SEPARATE |
code
and test again.
The difference should be clear then. _________________ ALL opinions are welcome.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes. |
|
Back to top |
|
|
|
|