<?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 Reading external files in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720661#M223256</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any methods to reacd external files in SAS except INFILE ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 20 Feb 2021 19:22:53 GMT</pubDate>
    <dc:creator>Aexor</dc:creator>
    <dc:date>2021-02-20T19:22:53Z</dc:date>
    <item>
      <title>Reading external files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720661#M223256</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any methods to reacd external files in SAS except INFILE ??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 19:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720661#M223256</guid>
      <dc:creator>Aexor</dc:creator>
      <dc:date>2021-02-20T19:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reading external files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720664#M223259</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/327170"&gt;@Aexor&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any methods to reacd external files in SAS except INFILE ??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;PROC IMPORT can be used to convert external files into SAS datasets.&amp;nbsp; Check the documentation for the types of files it can read.&amp;nbsp; Typically you use this to convert data that looks like a dataset, like a spreadsheet (Excel files for example), another database (dBASE, SPSS, STATA, etc)&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 19:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720664#M223259</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-20T19:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading external files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720683#M223269</link>
      <description>&lt;P&gt;SAS/Access has modules to connect to many data sources.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODBC can be used to connect to some.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LIBNAME can also connect to some file types.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Feb 2021 22:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720683#M223269</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-20T22:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Reading external files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720708#M223275</link>
      <description>&lt;P&gt;Would it qualify as not using INFILE if the external file had a "datalines;" statement as its first line.&amp;nbsp; If so, then such a file can be &lt;EM&gt;&lt;STRONG&gt;%INCLUDEd&lt;/STRONG&gt;&lt;/EM&gt; (like c:\temp\t.txt below in the second data step.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename f 'c:\temp\t.txt';
data _null_;
  file f;
  put 'datalines;';
  put '1 1 1';
  put '2 2 2';
run;

data t;
  input a b c;
  %include 'c:\temp\t.txt';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Those who are facile with their operating system commands can probably create a pipe with the "datalines;" statement dynamically inserted before streaming the file in question.&amp;nbsp; Then just %INCLUDE the pipe.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 04:00:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720708#M223275</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2021-02-21T04:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Reading external files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720721#M223281</link>
      <description>&lt;P&gt;When reading&amp;nbsp;&lt;EM&gt;text&lt;/EM&gt; files, you will always have an INFILE statement, either written by you or by the IMPORT procedure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's so bad about INFILE? Did it bite you?&lt;/P&gt;</description>
      <pubDate>Sun, 21 Feb 2021 10:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/720721#M223281</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-21T10:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading external files in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/721275#M223538</link>
      <description>Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; . I always prefer INFILE .&lt;BR /&gt;this question is asked by my colleague though i dont know any other ways except INFILE&lt;BR /&gt;so asked for help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;This community is amazing. Thank you all!!</description>
      <pubDate>Tue, 23 Feb 2021 14:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-external-files-in-SAS/m-p/721275#M223538</guid>
      <dc:creator>Aexor</dc:creator>
      <dc:date>2021-02-23T14:44:30Z</dc:date>
    </item>
  </channel>
</rss>

