Date: Wed, 28 Jul 2004 16:44:43 -0400
Reply-To: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Howard Schreier <Howard_Schreier@ITA.DOC.GOV>
Subject: Re: Tabulation format
Because the ranges overlap, I think it is impossible.
You can build a character variable to use in your report. It would be
something like
length xchar $ 9;
if [some condtion] then xchar = put(x,comma9.0);
else xchar = put(x, 9.3);
On Wed, 28 Jul 2004 10:46:32 -0400, ben.powell@CLA.CO.UK wrote:
>Dear SAS-L
>
>Because of a tabulation I have three variable types in a new variable, for
>instance var1 has range 1-10,000 and vars2&3 have range 0.001-10.000. How
>do I apply a format to the new tabulated variable x that will selectively
>apply comma9.0 to the values that come from var1 and 8.3 to values from
>var2&3?
>
>Vars1-3 are now the class for the table such that var x is the var. Being
>more specific than this could pose a problem!
>
>Any suggestions much appreciated.
|