View previous topic :: View next topic |
Author |
Message |
abracadabra Beginner
Joined: 02 Sep 2003 Posts: 101 Topics: 55 Location: India
|
Posted: Mon Jun 27, 2005 12:43 pm Post subject: Negative Value from Map |
|
|
Hi,
I believe we cannot have a sgined variable when I am receiving a value from the map into my program. Lets say variable A has PIC X(4) and I add -123 from the map which is received and moved to a variable B which is PIC S9(4) COMP. Will this variable B treat the value '123' as negative and correctly process the data?
For example if B is now added to C (value +123) to give D, will D have a value of zero or would it result in a value of 246?
Thanks _________________ Cheers! |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Mon Jun 27, 2005 2:57 pm Post subject: |
|
|
abracadabra,
Most shops have a NUMERIC edit program which will reformat the contents from the screen to the actual values. In this case you need to inspect/unstring and move the contents accordingly.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|