LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (January 2005, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 20 Jan 2005 10:36:33 -0800
Reply-To:     Dennis Diskin <diskin@SNET.NET>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Dennis Diskin <diskin@SNET.NET>
Subject:      Re: picture format
Comments: To: David Ryerson <ryersond@YAHOO.COM>
In-Reply-To:  <20050120180120.8256.qmail@web60810.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii

David,

The format does not produce output because leading zeros are suppressed using the 0 picture specification. if you use 0 - < 10 = "000.9%)" ( prefix = "( " ) it should work as desired.

HTH, Dennis Diskin

David Ryerson <ryersond@YAHOO.COM> wrote: Hello all,

Could anyone tell my why the following format works for any value above zero but not for 0 (or 0.0 specifically)? I've tried substituting 0.0 in for 0 in the format statement and that fails also.

proc format picture mypctf 0 - < 10 = "000.0%)" ( prefix = "( " ) 10 - < 100 = "000.0%)" ( prefix = "( " ) 100 - < 1000 = "000.0%)" ( prefix = "(" ) other = " " ; run;

Thanks as always!

Dave Ryerson

__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


Back to: Top of message | Previous page | Main SAS-L page