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
 

 

PIC -(9).99 - how much space does it occupy

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Wed Dec 03, 2008 10:48 am    Post subject: PIC -(9).99 - how much space does it occupy
Reply with quote

hi,
pic -(9).99.
how is this used ? i mean how will it handle positive and negatives values and how much space does it occupy?
Back to top
View user's profile Send private message

gomu_mm

New User


Joined: 05 Dec 2006
Posts: 19
Location: Chennai

PostPosted: Wed Dec 03, 2008 11:11 am    Post subject:
Reply with quote

Hi,

In case of -9.99, the negative sign is displayed only if the variable is negative.

It does not displays the - sign when positive value is passed to it.

Thanks,
Gomathi.
Back to top
View user's profile Send private message
Gursharan Khalsa

New User


Joined: 04 Sep 2007
Posts: 33
Location: Salinas

PostPosted: Wed Dec 03, 2008 5:04 pm    Post subject: Reply to: PIC -(9).99 - how much space does it occupy
Reply with quote

an how much space does it occpy?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Dec 03, 2008 5:13 pm    Post subject:
Reply with quote

12 bytes

-(9) = 9
.99 = 3
=========
12
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Dec 03, 2008 7:08 pm    Post subject:
Reply with quote

Dick,

I think you forgot the sign byte, s/b 13?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2180
Location: @my desk

PostPosted: Wed Dec 03, 2008 7:18 pm    Post subject:
Reply with quote

Quote:
I think you forgot the sign byte, s/b 13?

Jack,

It's -(9). That should give only 9; plus that of .99 = 3 giving a total of only 12.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Thu Dec 04, 2008 12:35 am    Post subject:
Reply with quote

Hi Arun,

You're right, I'm looking at -(9).99 and seeing -9(9).99 icon_redface.gif
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts How to find Table-space and Index-spa... venksiv DB2 5 Wed Feb 03, 2016 6:16 pm
No new posts VTS and space BobGilbert All Other Mainframe Topics 2 Mon Jan 11, 2016 5:08 am
No new posts DFSORT - Space issue santosh_g DFSORT/ICETOOL 3 Fri Sep 04, 2015 7:44 am
No new posts How to read the db2 table space statu... cmsmoon DB2 3 Fri Apr 17, 2015 2:29 am


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