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

display format decimals instead of implied decimals


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Thu Sep 10, 2009 9:02 pm
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 10, 2009 9:18 pm
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: 1249
Location: Richfield, MN, USA

PostPosted: Thu Sep 10, 2009 9:22 pm
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
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
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: 1249
Location: Richfield, MN, USA

PostPosted: Thu Sep 10, 2009 9:41 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Sep 10, 2009 10:33 pm
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

Superior Member


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

PostPosted: Fri Sep 11, 2009 12:23 pm
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
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: 1249
Location: Richfield, MN, USA

PostPosted: Tue Sep 15, 2009 9:11 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> HomeWorks & Requests

 


Similar Topics
Topic Forum Replies
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts InfoSphere OPTIM CSV ouput vs DSNTIUA... IBM Tools 3
No new posts Need mmmyy date format SYNCSORT 6
Search our Forums:

Back to Top