View previous topic :: View next topic
|
Author |
Message |
Vinay Pushpala
New User
Joined: 06 Nov 2013 Posts: 21 Location: India
|
|
|
|
Hi all,
I am using a variable with a sign bit and zero suppression on it.
But the sign is not moving towards the value of the variable after the calculation is done along with zero suppression
The declaration I gave in the program is:
DCL ABCD PIC'S(10)Z9.V99 init(0);
After the calculation is done and when I display the value in the spool,
I could see the sign present in the first position and then spaces and then the calculated value is printed. You can check the values with the negative sign in the screen shot. The declaration I gave is same for the last two variables.
Could any one tell me how to move the sign bit next to the value ?
Any help or reference is appreciated. Thank you[img][$1FCBF1CC68586345.jpg] [/img] |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
I'd suggest you read the manual, something you obviously haven't done. The behaviour is exactly as expected. |
|
Back to top |
|
|
Vinay Pushpala
New User
Joined: 06 Nov 2013 Posts: 21 Location: India
|
|
|
|
Thank you Prino |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
There are floating position signs and fixed position signs. You obviously thought you had a floating position sign but you did not code it that way. |
|
Back to top |
|
|
|