Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to modify the value using the sign bit ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Vinay Pushpala

New User


Joined: 06 Nov 2013
Posts: 21
Location: India

PostPosted: Fri Feb 13, 2015 2:10 pm    Post subject: How to modify the value using the sign bit ?
Reply with quote

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
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Fri Feb 13, 2015 2:58 pm    Post subject:
Reply with quote

I'd suggest you read the manual, something you obviously haven't done. The behaviour is exactly as expected.
Back to top
View user's profile Send private message
Vinay Pushpala

New User


Joined: 06 Nov 2013
Posts: 21
Location: India

PostPosted: Wed Apr 01, 2015 8:05 pm    Post subject:
Reply with quote

Thank you Prino
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7910
Location: Bellevue, IA

PostPosted: Thu Apr 02, 2015 3:06 am    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IGZ0040S An invalid separate sign was... kishpra COBOL Programming 13 Sun Aug 02, 2015 2:41 am
No new posts Best Method/Utility to modify HEX val... MrExtraordinare JCL & VSAM 6 Mon Mar 09, 2015 10:09 pm
No new posts SUM FIELDS of ZONED DECIMAL as DISPLA... mrgnndhmk JCL & VSAM 1 Mon Aug 11, 2014 9:16 pm
No new posts Moving sign bit from X variable to 9 seahawk789 COBOL Programming 10 Mon Aug 11, 2014 2:45 am
No new posts Move SIGN NUM to UNSIGN NUM warning m... xpower COBOL Programming 2 Tue Apr 15, 2014 7:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us