| Date: | Wed, 11 Dec 2002 10:36:18 -0500 |
| Reply-To: | "Cacialli, Doug" <Doug_Cacialli@URMC.ROCHESTER.EDU> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | "Cacialli, Doug" <Doug_Cacialli@URMC.ROCHESTER.EDU> |
| Subject: | Macro inside a macro |
| Content-Type: | text/plain; charset="iso-8859-1" |
Y'all,
Can somebody tell me, as simply as possible, if it is possible to use CALL
SYMPUT and the resulting macro variable, within a macro. For example (this
is a gross oversimplification of what I'm attempting to do):
%MACRO EXAMPLE (SOMEDATASET=);
DATA EXAMPLE;
SET &SOMEDATASET;
BY ID;
IF ID = 2 THEN CALL SYMPUT ('QUESTIONABLE_VAR',NAME);
RUN;
DATA EXAMPLE2;
SET IDLIST;
BY ID;
NEWID = &QUESTIONABLE_VAR;
RUN;
%MEND EXAMPLE;
Would that work? I'd be grateful for any help. Thanks.
Doug out.
---------------------------------------------------
Douglas Cacialli - Data Manager / Data Analyst
Sleep and Depression Research Laboratory
University of Rochester Medical Center
300 Crittenden Blvd. - Box PSYCH
Rochester, New York 14642
Phone: (585)273-3309 Fax: (585)506-0287
**** NOTE NEW FAX NUMBER ****
---------------------------------------------------
|