| Date: | Wed, 14 Jan 2009 11:59:34 -0600 |
| Reply-To: | Carl Denney <cdenney@HEALTHINFOTECHNICS.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> |
| From: | Carl Denney <cdenney@HEALTHINFOTECHNICS.COM> |
| Subject: | Re: combine n SAS datasets in to one SAS dataset. |
|
| In-Reply-To: | <9338bf18-69b1-485d-9c88-ba8b10e288f6@s20g2000yqh.googlegro
ups.com> |
| Content-Type: | text/html; x-AttchRem=yes; charset="us-ascii" |
|---|
<html>
<body>
<br>
Filename allfiles ('d:\conv\2008*.asc'); * Filenames can use
wildcards;<br><br>
infile allfiles;<br><br>
<br><br>
<br>
At 10:53 AM 1/14/2009, b.djaby@gmail.com wrote:<br>
<blockquote type=cite class=cite cite="">Hi,<br>
I have a similar problem in my SAS macro;<br>
I have many ascii files where name are 2008011.asc to 2008123<br>
year = 2008, month=01 to 12 and dekad = 1 to 3;<br>
To import all my files, I have writed 2 similars macro contain
with<br>
those code:<br>
%LET month=9;<br>
%LET dekad=3;<br>
<x-tab> </x-tab>%Do i= 1
%to &month;<br>
<x-tab> </x-tab>%DO j = 1
%to &dekad;<br>
%let dataname ="d:\conv\20080&i&j.asc";<br>
infile &dataname;<br>
****<br>
and for second<br><br>
%LET month=12;<br>
%LET dekad=3;<br>
<x-tab> </x-tab>%Do i= 10
%to &month;<br>
<x-tab> </x-tab>%DO j = 1
%to &dekad;<br>
%let dataname ="d:\conv\2008&i&j.asc";<br>
infile &dataname;<br>
*****<br><br>
How can I combine my two macro to deal with all the file in one macro
?</blockquote>
<x-sigsep><p></x-sigsep>
<br>
<b>Carl Denney, MSIE<br>
<font size=2>Founder<br>
Health InfoTechnics <br>
210 Jamestown Park, Suite 101, Brentwood, TN 37027<br>
</font><font face="Lucida Console" size=2>615/298-4011</font> <br>
<a href="http://www.healthinfotechnics.com/" eudora="autourl">
http://www.healthinfotechnics.com<br>
</a></b></body>
</html>
|