|
Helen - Try this:
%macro ds;
%do i=1 %to 40;
dataset&i
%end;
%mend ds;
Data final;
Set %ds;
Run;
hth
Paul Choate
DDS Data Extraction
(916) 654-2160
-----Original Message-----
From: helen [mailto:chenghelen2000@YAHOO.COM]
Sent: Friday, January 16, 2004 1:07 PM
To: SAS-L@LISTSERV.UGA.EDU
Subject: name of dataset
I have a dataset that consists of 40 datasets, since the names of
datasets are in order as following, instead of listing each of name,
is there a way to use '-' to do it.
Names of datasets: dataset1, dataset2, dataset3, dataset4, ......,
dataset40.
Final dataset: final
Data final;
Set dataset1 dataset2 dataset3 ...... dataset38 dataset39 dataset40;
Run;
Many thank.
Helen
|