LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2004, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.


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