Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref

Author Message
jagan403

New User

Joined: 10 Aug 2009
Posts: 6

 Posted: Thu Sep 10, 2009 1:03 pm    Post subject: display format decimals instead of implied decimals 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.

dick scherrer

Site Director

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

 Posted: Thu Sep 10, 2009 9:02 pm    Post subject: 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-).
jagan403

New User

Joined: 10 Aug 2009
Posts: 6

 Posted: Thu Sep 10, 2009 9:08 pm    Post subject: 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.
Robert Sample

Global Moderator

Joined: 06 Jun 2008
Posts: 8231
Location: Dubuque, Iowa, USA

 Posted: Thu Sep 10, 2009 9:18 pm    Post subject: 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.
Terry Heinze

JCL Moderator

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

 Posted: Thu Sep 10, 2009 9:22 pm    Post subject: Another way of saying this is that an implied decimal does not use any storage; a displayed decimal uses 1 byte of storage.
jagan403

New User

Joined: 10 Aug 2009
Posts: 6

 Posted: Thu Sep 10, 2009 9:38 pm    Post subject: +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
Craq Giegerich

Senior Member

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

Posted: Thu Sep 10, 2009 9:40 pm    Post subject:

 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
Terry Heinze

JCL Moderator

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

 Posted: Thu Sep 10, 2009 9:41 pm    Post subject: Dick and Robert have already answered your question. What don't you understand?
Robert Sample

Global Moderator

Joined: 06 Jun 2008
Posts: 8231
Location: Dubuque, Iowa, USA

 Posted: Thu Sep 10, 2009 10:33 pm    Post subject: 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?
Anuj Dhawan

Senior Member

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

Posted: Fri Sep 11, 2009 12:23 pm    Post subject:

 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?
jagan403

New User

Joined: 10 Aug 2009
Posts: 6

 Posted: Tue Sep 15, 2009 8:56 pm    Post subject: conclusion: Implied decimal 9(06)V9(5) to displayed decimal 9(06).9(05)
Terry Heinze

JCL Moderator

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

 Posted: Tue Sep 15, 2009 9:11 pm    Post subject: This thread seems to have gone nowhere in 5 days. Jagen, have you even cracked open the Language Reference Manual? It has your answer.
 All times are GMT + 6 Hours
 Page 1 of 1

Search our Forum:

 Topic Author Forum Replies Posted Similar Topics how to display APL characters? Pedro TSO/ISPF 6 Wed Mar 14, 2018 5:07 am Unloading DB2 table in CSV format alo... grvtomar COBOL Programming 7 Sun Jan 28, 2018 2:05 am Sum the fields in particular format f... sharana64 DFSORT/ICETOOL 9 Fri Jan 05, 2018 1:11 am Format Last Record differently from r... Learncoholic DFSORT/ICETOOL 5 Tue Oct 24, 2017 12:01 pm Format issues using XMITIP MSGDD ssdjp1 CLIST & REXX 5 Mon Oct 23, 2017 8:47 pm

 © 2003-2017 IBM MAINFRAME Software Support Division
 Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us