| 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
|