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 (June 2001, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 8 Jun 2001 10:48:59 -0400
Reply-To:     Jerry Davis <jwd@GAES.GRIFFIN.PEACHNET.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jerry Davis <jwd@GAES.GRIFFIN.PEACHNET.EDU>
Subject:      Variable values as column labels
Content-Type: text/plain; charset="US-ASCII"

A user asked me if it was possible to use the value generated from an arithmetic operation in a label statement. Ideally, something like:

label degday=year1 - year 2;

So the value of degday would appear as the label, not the string 'year1 - year2';

I think I have seen this done before but couldn't find anything in the manuals or sample library. For the record, I hate doing this sort of thing and don't see why people want to change SAS' default output. :)

Thanks for any help.

Jerry -- Jerry Davis Experimental Statistics UGA, CAES, Griffin Campus


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