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


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