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 2009, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.
Comments:   To: b.djaby@gmail.com
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');&nbsp; * 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&nbsp; 2008011.asc to 2008123<br> &nbsp;year = 2008, month=01 to 12 and dekad = 1 to 3;<br> To import all my files, I have writed 2 similars&nbsp; macro contain with<br> those code:<br> %LET month=9;<br> %LET dekad=3;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%Do i= 1 %to &amp;month;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%DO j = 1 %to &amp;dekad;<br> %let dataname =&quot;d:\conv\20080&amp;i&amp;j.asc&quot;;<br> infile &amp;dataname;<br> ****<br> and for second<br><br> %LET month=12;<br> %LET dekad=3;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%Do i= 10 %to &amp;month;<br> <x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>%DO j = 1 %to &amp;dekad;<br> %let dataname =&quot;d:\conv\2008&amp;i&amp;j.asc&quot;;<br> infile &amp;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>


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