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 (April 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 10 Apr 1997 21:52:22 GMT
Reply-To:   Philip Primak <pprimak@WORLD.STD.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   Philip Primak <pprimak@WORLD.STD.COM>
Organization:   Software Tool & Die, Brookline MA
Subject:   Re: formatting macro variables in a title

You can 'format' macro variables using %SYSFUNC function (if you have SAS 6.11+ or 6.09E+)

Example:

PROC format; VALUE hospid 101='NEW ENGLAND MC' 102= 'MASS GENERAL' . . . ; RUN;

%LET hosp=101 ; TITLE "REPORT FOR %SYSFUNC(PUTN(&hosp,hospid.))" ;

or if you using character format $hospid. then TITLE "REPORT FOR %SYSFUNC(PUTC(&hosp,hospid.))" ;

Philip Primak pprimak@word.std.com


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