<?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: How to read data into SAS from some files with different names but with the similar inner structure automatically? in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-read-data-into-SAS-from-some-files-with-different-names/m-p/127366#M1073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INFILE supports simple wildcard characters (both in Windows and Unix) for reading multiple files. Use filename= option to know where each observation comes from, as in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infile ('c:\myfiles\*.*','c:\myotherfiles\abc.dat') filename=whatFile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 May 2012 16:41:07 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-05-27T16:41:07Z</dc:date>
    <item>
      <title>How to read data into SAS from some files with different names but with the similar inner structure automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-read-data-into-SAS-from-some-files-with-different-names/m-p/127365#M1072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, I have the files (within the same directory) named with&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;human_CDx+CDx+xxh_1way_RM_ANOVA&lt;/P&gt;&lt;P&gt;common fragment in its names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The inner structure of the files is as follows:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINES with DATA&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;LINE with text&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2012 16:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-read-data-into-SAS-from-some-files-with-different-names/m-p/127365#M1072</guid>
      <dc:creator>stan</dc:creator>
      <dc:date>2012-05-27T16:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data into SAS from some files with different names but with the similar inner structure automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-read-data-into-SAS-from-some-files-with-different-names/m-p/127366#M1073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INFILE supports simple wildcard characters (both in Windows and Unix) for reading multiple files. Use filename= option to know where each observation comes from, as in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infile ('c:\myfiles\*.*','c:\myotherfiles\abc.dat') filename=whatFile;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2012 16:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-read-data-into-SAS-from-some-files-with-different-names/m-p/127366#M1073</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-05-27T16:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to read data into SAS from some files with different names but with the similar inner structure automatically?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/How-to-read-data-into-SAS-from-some-files-with-different-names/m-p/127367#M1074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works! But my intention is to make SAS compute different data sets&lt;/P&gt;&lt;P&gt;stored in '.txt' files located in a directory &lt;EM&gt;consequently&lt;/EM&gt;. One by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an article at UCLA website:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.ats.ucla.edu/stat/sas/faq/multi_file_read.htm" title="http://www.ats.ucla.edu/stat/sas/faq/multi_file_read.htm"&gt;SAS FAQ: How do I read multiple raw data files with the same structure in one data step? &lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I get a big table with directories and data themselves instead of my SAS script&lt;/P&gt;&lt;P&gt;consecutive execusions with different data sets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to implement this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 May 2012 17:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/How-to-read-data-into-SAS-from-some-files-with-different-names/m-p/127367#M1074</guid>
      <dc:creator>stan</dc:creator>
      <dc:date>2012-05-27T17:15:36Z</dc:date>
    </item>
  </channel>
</rss>

