<?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: open excel data in sas using infile statement in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891294#M39641</link>
    <description>&lt;P&gt;I am able to get results with proc import. I was just wondering why infile statement is not working. thanks for your response.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 11:58:46 GMT</pubDate>
    <dc:creator>raheleh22</dc:creator>
    <dc:date>2023-08-28T11:58:46Z</dc:date>
    <item>
      <title>open excel data in sas using infile statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891286#M39639</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am having hard time opening a data using infile statement. here is my code and I do not know why it is giving the error of "0" 0bservations! I know how to do it with proc import but I want to find out why infile statement is not working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA example;&lt;BR /&gt;INFILE 'Location\example.xlsx' DSD FIRSTOBS=2; /* first obesrvation will be second row*/&lt;BR /&gt;INPUT patient encounter smoking weight bloodpressure;&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT DATA=example;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks a lot,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 11:20:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891286#M39639</guid>
      <dc:creator>raheleh22</dc:creator>
      <dc:date>2023-08-28T11:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: open excel data in sas using infile statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891287#M39640</link>
      <description>&lt;P&gt;Since Excel files are not really the same as plain text files, trying to read them with a data step as if they were plain text files will almost definitely not give the desired results. What happens if you use PROC IMPORT instead?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc import datafile="Location\example.xlsx" dbms=excel out=example;
     getnames=YES;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Aug 2023 11:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891287#M39640</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-08-28T11:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: open excel data in sas using infile statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891294#M39641</link>
      <description>&lt;P&gt;I am able to get results with proc import. I was just wondering why infile statement is not working. thanks for your response.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 11:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891294#M39641</guid>
      <dc:creator>raheleh22</dc:creator>
      <dc:date>2023-08-28T11:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: open excel data in sas using infile statement</title>
      <link>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891333#M39647</link>
      <description>&lt;P&gt;INFILE in combination with INPUT is mainly for reading text files (which are the main vehicle for the transfer of data in professional environments).&lt;/P&gt;
&lt;P&gt;Excel (.xslx) files are ZIP-compressed archives of multiple XML files which contain and describe the data.&lt;/P&gt;
&lt;P&gt;If you want to use something other than PROC IMPORT or LIBNAME XLSX, you need to use a fileref of type ZIP, read the members (the .xml files) separately and parse the XML.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 14:57:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/open-excel-data-in-sas-using-infile-statement/m-p/891333#M39647</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-08-28T14:57:22Z</dc:date>
    </item>
  </channel>
</rss>

