Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 6968
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: 2285
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 The TS7720 is out of cache space. Rex Montemayor All Other Mainframe Topics 2 Mon Sep 25, 2017 7:18 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us