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
 

 

display format decimals instead of implied decimals

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
View previous topic :: :: View next topic  
Author Message
jagan403

New User


Joined: 10 Aug 2009
Posts: 6
Location: hyderabad

PostPosted: Thu Sep 10, 2009 1:03 pm    Post subject: display format decimals instead of implied decimals
Reply with quote

Can any one expleain the dif b/w implied decimal and displayed decimal.

the data prev am getting in implied decimal format PIC +9(7).999.
now i need to change it to displayed decimal format can any one help me out in this regarding.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Sep 10, 2009 9:02 pm    Post subject:
Reply with quote

Hello,

Implied decimals are used in calculations and comparisons. "Displayed" decimals are placed on screens and reports and are more readable.

Move the implied decimal field to an edited output field (i.e. pic zz,zzz.99-).
Back to top
View user's profile Send private message
jagan403

New User


Joined: 10 Aug 2009
Posts: 6
Location: hyderabad

PostPosted: Thu Sep 10, 2009 9:08 pm    Post subject:
Reply with quote

Thank you.
but could u explain little bit elabarate how exactly we can write data in displyed decimal format, like i wrote +9(7).9999 for implied decimal.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Sep 10, 2009 9:18 pm    Post subject:
Reply with quote

I would consider +9(7).9999 as displayed decimal format since the decimal point is part of the PICTURE. Implied decimal would be something like S9(7)V9(4) -- the V means the decimal point occurs between the two digits but there is no decimal point stored in the data value: 1234567987R would be the internal representation of -1234567.9879, for example.
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Thu Sep 10, 2009 9:22 pm    Post subject:
Reply with quote

Another way of saying this is that an implied decimal does not use any storage; a displayed decimal uses 1 byte of storage.
Back to top
View user's profile Send private message
jagan403

New User


Joined: 10 Aug 2009
Posts: 6
Location: hyderabad

PostPosted: Thu Sep 10, 2009 9:38 pm    Post subject:
Reply with quote

+9(7).9999 its not displayed decimal format,its a implied decimal format at present my code with +9(7).99999,i need to change this to displayed decimal format.
thanks,
jagan
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Sep 10, 2009 9:40 pm    Post subject:
Reply with quote

jagan403 wrote:
+9(7).9999 its not displayed decimal format,its a implied decimal format at present my code with +9(7).99999,i need to change this to displayed decimal format.
thanks,
jagan


RTFM
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Thu Sep 10, 2009 9:41 pm    Post subject:
Reply with quote

Dick and Robert have already answered your question. What don't you understand?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Thu Sep 10, 2009 10:33 pm    Post subject:
Reply with quote

Perhaps if you explain what YOU mean by "displayed decimal format" we can offer advice. As multiple posts have indicated, the way you are using this term is not the same as standard industry references -- so we don't know what you mean by this term. Give us examples with internal representations of the differences. Also, what language are you wanting to implement this in?
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Sep 11, 2009 12:23 pm    Post subject:
Reply with quote

Quote:
+9(7).9999 its not displayed decimal format,its a implied decimal format at present my code with +9(7).99999,i need to change this to displayed decimal format.
How do you conclude this? icon_eek.gif
Back to top
View user's profile Send private message
jagan403

New User


Joined: 10 Aug 2009
Posts: 6
Location: hyderabad

PostPosted: Tue Sep 15, 2009 8:56 pm    Post subject:
Reply with quote

conclusion:

Implied decimal 9(06)V9(5) to displayed decimal 9(06).9(05)
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
Location: Richfield, MN, USA

PostPosted: Tue Sep 15, 2009 9:11 pm    Post subject:
Reply with quote

This thread seems to have gone nowhere in 5 days. Jagen, have you even cracked open the Language Reference Manual? It has your answer.
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 -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Display ZEDLMSG without Pressing F1 &... anandgbe CLIST & REXX 8 Thu Dec 15, 2016 4:20 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm


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