Date: Thu, 20 Jan 2005 19:07:41 +0000
Reply-To: iw1junk@COMCAST.NET
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Ian Whitlock <iw1junk@COMCAST.NET>
Subject: Re: picture format
Dave,
The correct form of the code is:
proc format ;
picture mypctf
0 - < 10 = "009.0%)" ( prefix = "( " )
10 - < 100 = "009.0%)" ( prefix = "( " )
100 - < 1000 = "009.0%)" ( prefix = "(" )
other = " "
;
run;
More than 0 behaved in an odd manner with the original code.
Take a look at 0.1.
Ian Whitlock
==================
Date: Thu, 20 Jan 2005 10:01:20 -0800
Reply-To: David Ryerson <ryersond@YAHOO.COM>
Sender: "SAS(r) Discussion"
Comments: DomainKeys? See http://antispam.yahoo.com/domainkeys
From: David Ryerson <ryersond@YAHOO.COM>
Subject: picture format
Content-Type: text/plain; charset=us-ascii
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
|