IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to modify the value using the sign bit ?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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
Warnings : 1

Senior Member


Joined: 07 Feb 2009
Posts: 1238
Location: Vilnius, Lithuania

PostPosted: Fri Feb 13, 2015 2:58 pm
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
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: 8569
Location: Dubuque, Iowa, USA

PostPosted: Thu Apr 02, 2015 3:06 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Modify Several JCLs at the Same Time JCL & VSAM 6
This topic is locked: you cannot edit posts or make replies. Missing Negative sign in COBOL COBOL Programming 6
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
No new posts Typing the CENT sign ยข on mainframe,... All Other Mainframe Topics 2
No new posts Modify the shareoptions of VSAM in De... CLIST & REXX 30
Search our Forums:

Back to Top