Date: Wed, 7 Jul 2004 14:35:56 -0500
Reply-To: "Dunn, Toby" <tdunn@TEA.STATE.TX.US>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Dunn, Toby" <tdunn@TEA.STATE.TX.US>
Subject: Re: selecting multiple datasets
Content-Type: text/plain; charset="us-ascii"
Assuming you want a new macro var for each dataset:
Data _null_;
Set sashelp.vcolumn;
Where memname =: ('val');
Call symput(memname,memname);
Run;
Should do it.
HTH
Toby Dunn
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
Nicole Bibb
Sent: Wednesday, July 07, 2004 2:06 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: selecting multiple datasets
I have several datasets with similar names in the same library. I only
want to select those datasets with 'val' in the name and store them in
macro variables.
Any ideas?
Thanks
|