<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Create a macro to import and merge thousands CSV files into a single dataset in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327577#M9560</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62534"&gt;@tritringuyen&lt;/a&gt; wrote:&lt;BR /&gt;I need codes as detailed as possible.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you hire a consultant or do the research and at least make an attempt. There are several programmers here for hire if you're interested.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2017 22:57:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-01-25T22:57:24Z</dc:date>
    <item>
      <title>Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327494#M9544</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a sample of data which is attached. I want to do the following tasks:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Import thousands of CSV files similar to the sample (with the&amp;nbsp;same format). Then merge files into a single SAS file. I want a macro to import and merge files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Translate variable&amp;nbsp;&lt;STRONG&gt;T_connected&lt;/STRONG&gt; and &lt;STRONG&gt;Tenure_firm&lt;/STRONG&gt;&amp;nbsp;into numbers&amp;nbsp;(or create new variables based on &lt;SPAN&gt;variable&amp;nbsp;&lt;STRONG&gt;T_connected &lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;Tenure_firm&amp;nbsp;&lt;/STRONG&gt;). I&lt;/SPAN&gt;n this case, I suppose the translated value is 0 for&amp;nbsp;&lt;STRONG&gt;T_connected; a&lt;/STRONG&gt;nd 2 and 0 for&amp;nbsp;&lt;STRONG&gt;Tenure_firm&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Translate variable&amp;nbsp;Startdate&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;into a variable with year only. In original files, the&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;Startdate&amp;nbsp;&lt;/STRONG&gt;variable sometimes appears with year&amp;nbsp;only, sometimes with month and year, sometimes with date month and year, sometimes it states "current" (current year is 2014).&amp;nbsp;I want a numeric variable with year only (e.g. 2012).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone can help me on this issue? Please suggest codes which particularly fit my data. I really appreciate your help. Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers, Thierry&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327494#M9544</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T19:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327496#M9545</link>
      <description>&lt;P&gt;Your attachment is not a csv. Please post a sample from the csv as text (use the {i} icon).&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327496#M9545</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-01-25T19:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327502#M9546</link>
      <description>&lt;P&gt;Here's instructions on how to read a bunch of CSV files that all have the same format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If they're not stored in the same folder look at the FILEVAR&amp;nbsp;option on the INFILE statement. I'm not about to do all of your work/homework so give it a shot first and ask questions that are more specific than your entire problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:20:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327502#M9546</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-25T19:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327506#M9547</link>
      <description>&lt;P&gt;Hi, it is an&amp;nbsp;excel file. The web does not allow to attach CSV files. But you can convert it to CSV file easily.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327506#M9547</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T19:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327507#M9548</link>
      <description>&lt;P&gt;The picture of sample is attached. Thanks&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13366i821B5BB86F15A4B1/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Untitled.png" title="Untitled.png" /&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:30:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327507#M9548</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T19:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327511#M9549</link>
      <description>&lt;P&gt;Upload file as txt instead of CSV, Excel can change the data inside a CSV so it's not a good transfer mechanism.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Images are not helpful, since we won't take the time to type out the data.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 19:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327511#M9549</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-25T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327513#M9550</link>
      <description>&lt;P&gt;Rename the csv to txt. Many (most) members refrain from downloading xlsx files which are considered unsafe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please tell us how the data files are organized within your directory structure. Can they be listed with a simple wildcard name such as c:\myFiles\*.csv ?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:10:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327513#M9550</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-01-25T20:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327520#M9551</link>
      <description>&lt;P&gt;Thank you very much for your responses. Here is the txt file. All files are stored in the same folder (in my PC). Thank you very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes. Thierry.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327520#M9551</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T20:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327528#M9552</link>
      <description>&lt;P&gt;The approach&amp;nbsp;suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;should work for you, except that you should add option DLM='09'x to your INFILE statement, as your data seems to be TAB delimited and not comma delimited.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327528#M9552</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-01-25T20:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327534#M9553</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;The approach&amp;nbsp;suggested by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;should work for you, except that you should add option DLM='09'x to your INFILE statement, as your data seems to be TAB delimited and not comma delimited.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And looks like some form of double-byte character set as well.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327534#M9553</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-25T20:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327535#M9554</link>
      <description>&lt;P&gt;Have you tried the solution I proposed?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 20:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327535#M9554</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-25T20:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327573#M9556</link>
      <description>Dear Reeza, Thank you very much for your code. I suppose that i should work. However, SAS is quite new for me. I wonder if you could more specific about "*Otherwise go to the import step and read the files;&lt;BR /&gt;else input&lt;BR /&gt;&lt;BR /&gt;*Place input code here;".&lt;BR /&gt;&lt;BR /&gt;Actually, I dont know how to process further. Thank you very much!</description>
      <pubDate>Wed, 25 Jan 2017 22:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327573#M9556</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T22:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327574#M9557</link>
      <description>Hi Ballardw, thank you very much, but I dont really get what you mean. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:53:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327574#M9557</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T22:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327575#M9558</link>
      <description>Thank you PG. They are CSV files. Although your suggestion should be valuable. However, I am still cannot process further with &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt; codes. I need codes as detailed as possible.</description>
      <pubDate>Wed, 25 Jan 2017 22:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327575#M9558</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T22:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327576#M9559</link>
      <description>&lt;P&gt;Have you figured out how to read one file? That's your starting point. If you figure that out&amp;nbsp;and then come back to my post it will be more clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a quick tutorial on how to read files:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.ats.ucla.edu/stat/sas/library/SASRead_os.htm" target="_blank"&gt;http://www.ats.ucla.edu/stat/sas/library/SASRead_os.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;More tutorials are here, including a link to the first e-course which is free.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/training/tutorial/" target="_blank"&gt;http://support.sas.com/training/tutorial/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In fact, if you're using SAS UE, there were some posts recently on how to use SAS Studio to automate a process multiple times using the point and click interface.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/SAS-Studio-Custom-Task-Tuesday-Macro-Proc-Execution/ta-p/320589" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/SAS-Studio-Custom-Task-Tuesday-Macro-Proc-Execution/ta-p/320589&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take the time to learn the software if you plan on using it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327576#M9559</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-25T22:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327577#M9560</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62534"&gt;@tritringuyen&lt;/a&gt; wrote:&lt;BR /&gt;I need codes as detailed as possible.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then you hire a consultant or do the research and at least make an attempt. There are several programmers here for hire if you're interested.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 22:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327577#M9560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-25T22:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327580#M9562</link>
      <description>&lt;P&gt;Thank you very much for your codes.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 23:10:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327580#M9562</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-25T23:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327582#M9563</link>
      <description>&lt;P&gt;I could take this on for you. Send me a private message if you wish to discuss further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 23:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327582#M9563</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-01-25T23:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327590#M9564</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/62534"&gt;@tritringuyen&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Using SAS Enterprise Guide you can use the IMPORT task for one of your data sources. This will generate the input code for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Such code will give you a very good starting point to then use&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;'s code and add the input snippet&amp;nbsp;to where it's documented in the code sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;*Otherwise go to the import step and read the files;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;else input&lt;/EM&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;EM&gt;*Place input code here;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;lt;variable 1 to n&amp;gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;N.B: Don't use the EG generated code as is. You will certainly have to modify the LENGTH assignments for all character variables so that they are long enough for all your data and not only for the specific file you've used for generating the code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 00:14:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327590#M9564</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-01-26T00:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create a macro to import and merge thousands CSV files into a single dataset</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327592#M9565</link>
      <description>&lt;P&gt;Thank you very much for the responses of all of you. Speical thanks to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;for the code. I think it works. I already know how to use it, but still learn how to fix the issue around the&amp;nbsp;length of variables. Maybe I will go back to the pointers to read datalines. Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 00:19:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Create-a-macro-to-import-and-merge-thousands-CSV-files-into-a/m-p/327592#M9565</guid>
      <dc:creator>tritringuyen</dc:creator>
      <dc:date>2017-01-26T00:19:52Z</dc:date>
    </item>
  </channel>
</rss>

