Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Display - ive Sign

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
prabhucs01

New User


Joined: 07 Mar 2005
Posts: 40

PostPosted: Tue May 17, 2005 12:28 pm    Post subject: Display - ive Sign
Reply with quote

if i have a variable like

05 a-var pic s9(3) value -123

then when we display the variable 'a-var' will - be specified in the output.
if not so then how is it stored.
Back to top
View user's profile Send private message
References
Deepa.m
Warnings : 1

Active User


Joined: 28 Apr 2005
Posts: 88

PostPosted: Tue May 17, 2005 1:10 pm    Post subject:
Reply with quote

'- 'sign will not be specified in the output. The sign will be stored in the last nibble (4 bits) of the a-var.
so you will get a output which gives a different value in the last digit as sign is stored in last nibble. if u want a proper display use "sign is leading separate' in the declaration.
Back to top
View user's profile Send private message
prabhucs01

New User


Joined: 07 Mar 2005
Posts: 40

PostPosted: Tue May 17, 2005 1:15 pm    Post subject:
Reply with quote

since the above declaration is zoned numeric storage each variable will take a byte storage.isn't so?
Back to top
View user's profile Send private message
Deepa.m
Warnings : 1

Active User


Joined: 28 Apr 2005
Posts: 88

PostPosted: Tue May 17, 2005 1:21 pm    Post subject: Re: display
Reply with quote

yes.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1