<?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: Hi, in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157142#M299099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't mentioned why you want to use an input statement. An alternative way of reading Excel files is the libname access method. With it, you can do most of the things you'd typically like to accomplish with an input statement. Here are two links that describe it;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n1wvmggexroxgyn17rp61jml3cvn.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n1wvmggexroxgyn17rp61jml3cvn.htm"&gt;SAS/ACCESS(R) 9.3 Interface to PC Files: Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" title="http://www2.sas.com/proceedings/sugi31/024-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Dec 2014 14:31:38 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2014-12-19T14:31:38Z</dc:date>
    <item>
      <title>Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157135#M299092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Am trying to import Excel file using INFILE Statement. Can anybody help me by providing the details, I do not want to use IMPORT or DDE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 07:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157135#M299092</guid>
      <dc:creator>Divya_S123</dc:creator>
      <dc:date>2014-12-19T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157136#M299093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at a example 3.3 in &lt;A class="active_link" href="http://www.ats.ucla.edu/stat/sas/library/SASRead_os.htm" title="http://www.ats.ucla.edu/stat/sas/library/SASRead_os.htm"&gt;http://www.ats.ucla.edu/stat/sas/library/SASRead_os.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also look at &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146932.htm" title="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000146932.htm"&gt;SAS(R) 9.2 Language Reference: Dictionary, Fourth Edition&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 09:25:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157136#M299093</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-12-19T09:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157137#M299094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply RamKumar,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In Example 3.3 which u mentioned reading a txt file is given however, I want to read xls file using INFILE statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 09:38:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157137#M299094</guid>
      <dc:creator>Divya_S123</dc:creator>
      <dc:date>2014-12-19T09:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157138#M299095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can follow the same example by replacing .txt with .csv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 09:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157138#M299095</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-12-19T09:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157139#M299096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ram actually i don't want to convert xls file into CSV file, I want to read xls directly without converting it to csv file using INFILE Statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 09:53:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157139#M299096</guid>
      <dc:creator>Divya_S123</dc:creator>
      <dc:date>2014-12-19T09:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157140#M299097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to clarify your question.&amp;nbsp; Is the file you are dealing with:&lt;/P&gt;&lt;P&gt;XLS - I.e. Excel proprietary binary file (previous Excel version &amp;lt; 2007 have this a default) - This type of file cannot be read by methods other than proc import as it uses the JET engine.&lt;/P&gt;&lt;P&gt;XSLX - Excel native XML zipped file (current releases of Excel use this as standard now) - In theory you can unzip and read the individual XML files, not recommended though.&lt;/P&gt;&lt;P&gt;CSV - Comma Separated Variable file - this is a text file which can be parsed by Excel - Easy to read in an parse&lt;/P&gt;&lt;P&gt;Other - XML, text etc. - Easy to read in and parse.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending on the file type your code will change.&amp;nbsp; Also bear in mind that using infile within a datastep and writing the import yourself is the preferred method, however you would be better served getting the file to CSV first (save as CSV in Excel).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 09:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157140#M299097</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-12-19T09:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157141#M299098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your environment? Especially, on what platform is your base SAS running?&lt;/P&gt;&lt;P&gt;Is SAS/ACCESS to PC Files licensed?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use the INFILE statement of a data step directly for a .xls file, because Excel files are not structured in rows and colums on a physical level. Just a stream of bytes that needs to be decoded.&lt;/P&gt;&lt;P&gt;Even the import wizard in SAS Enterprise Guide does not read the .xls on its own, it relies on a piece of MS SW that does the decoding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do a web search for "Import Excel into SAS", there are tons of resources covering multitudes of methods, all having their pro's and con's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:26:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157141#M299098</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-19T14:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hi,</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157142#M299099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't mentioned why you want to use an input statement. An alternative way of reading Excel files is the libname access method. With it, you can do most of the things you'd typically like to accomplish with an input statement. Here are two links that describe it;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n1wvmggexroxgyn17rp61jml3cvn.htm" title="http://support.sas.com/documentation/cdl/en/acpcref/63181/HTML/default/viewer.htm#n1wvmggexroxgyn17rp61jml3cvn.htm"&gt;SAS/ACCESS(R) 9.3 Interface to PC Files: Reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" title="http://www2.sas.com/proceedings/sugi31/024-31.pdf"&gt;http://www2.sas.com/proceedings/sugi31/024-31.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 14:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi/m-p/157142#M299099</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2014-12-19T14:31:38Z</dc:date>
    </item>
  </channel>
</rss>

