| Date: | Sat, 16 Mar 2002 10:26:27 -0500 |
| Reply-To: | Kevin Viel <kviel@EMORY.EDU> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Kevin Viel <kviel@EMORY.EDU> |
| Subject: | Re: passing format information into a macro |
| Content-Type: | text/plain; charset=us-ascii |
William Kossack wrote:
>
> Is it possible to pass a format created with proc format into a macro as
> part of the parameter list?
William,
It is as the example below shows:
proc format;
value one 1="one";
run;
%macro fmat (format=, x=);
data _null_;
x=&x;
put x &format.;
run;
%mend fmat;
%fmat (format=one., x=1);
Perhaps you had something else in mind?
Regards,
Kevin
---------------------------------
Kevin Viel
Department of Epidemiology
Rollins School of Public Health
Emory University
Atlanta, GA 30322
|