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 (January 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 16 Jan 2004 13:19:07 -0800
Reply-To:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Choate, Paul@DDS" <pchoate@DDS.CA.GOV>
Subject:   Re: name of dataset
Comments:   To: helen <chenghelen2000@YAHOO.COM>

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


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