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 (May 2002, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


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