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