<?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: PROC IMPORT Without Headers in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104758#M29266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="2682" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; Define "headers".&amp;nbsp; Do you mean variable names or something else?&amp;nbsp; Can you use the xls engine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Oct 2012 22:36:45 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-10-23T22:36:45Z</dc:date>
    <item>
      <title>PROC IMPORT Without Headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104757#M29265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Afternoon,&lt;/P&gt;&lt;P&gt;I'm running EG 4.3 from my desktop on a 64-bit Windows Server and I'm trying to import an excel spreadsheet THAT DOESN'T HAVE HEADERS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run the following, the first line in the spreadsheet (data) imports into SAS as my header columns. Apparently, there is no headers=no option for EXCELCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc import out=P01.needed_output&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datafile= "C:\data\excel_spreadsheet_without_headers.xls"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=EXCELCS REPLACE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet="Sheet1"; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; usedate=YES;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; scantime=YES;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SERVER='rvwsascpt01';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT=9621;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've also tried with no luck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;libname nhlbi pcfiles server="rvwsascpt01"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;port=9621 path="C:\data\excel_without_headers.xls"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;header=no;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone run into this before and know how to resolve it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 21:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104757#M29265</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2012-10-23T21:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT Without Headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104758#M29266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A __default_attr="2682" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; Define "headers".&amp;nbsp; Do you mean variable names or something else?&amp;nbsp; Can you use the xls engine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2012 22:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104758#M29266</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-23T22:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT Without Headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104759#M29267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the option :&amp;nbsp; &lt;/P&gt;&lt;P&gt;getnames=no;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;range='xxxxxxx' ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 03:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104759#M29267</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-10-24T03:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT Without Headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104760#M29268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Art,&lt;/P&gt;&lt;P&gt;By "no headers", I mean the data starts in row 1 instead of having a header description like StudyID or First_Name in row 1 and the data starting in row 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently when running EG 4.3 from a desktop on a 64-bit Windows Server, you have the use the EXCELCS engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Robby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 13:58:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104760#M29268</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2012-10-24T13:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT Without Headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104761#M29269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good Morning Ksharp,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;getnames=no is not a valid option when using the EXCELCS engine. &lt;A href="http://support.sas.com/kb/41/060.html"&gt;http://support.sas.com/kb/41/060.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The range "sort of works" but not really since it seems to place the first data line as the header no matter if you use $a0, $a1, $a2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the same link above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;•The EXCELCS method. This method can help with the GETNAMES= option, but not with the MIXED= option: &lt;BR /&gt;1.Insert a blank row above the data that you want to read in Excel. &lt;BR /&gt;2.Read the file using the RANGE= option, similar to the following example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc import datafile='c:\sastest\myfile2.xlsb' &lt;BR /&gt;&amp;nbsp;&amp;nbsp; out=sasdata &lt;BR /&gt;&amp;nbsp;&amp;nbsp; dbms=excelcs replace;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; range='test1$a2:e21'n;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104761#M29269</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2012-10-24T14:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT Without Headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104762#M29270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;According to the documentation the excelcs engine is extremely limited.&amp;nbsp; Unfortunately, according to Chris (the SAS Dummy) you don't have much choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try: DBDSOPTS= 'FIRSTOBS=1'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if that serves the same purpose as getnames=no, but it is definitely worth trying.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104762#M29270</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-10-24T14:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: PROC IMPORT Without Headers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104763#M29271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, we're finding out the limitations of the EXCELCS engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave the DBDSOPTS= 'FIRSTOBS=1' a shot and unfortunately it pulls the data in row 1 in and turns it into the column headers in the sas dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point, I'm just going to manually insert column headings (and grumble about EXCELCS) for this monthly job before I run the sas jobs. It's not ideal but at least I won't lose the first row of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank again, I appreciate your help.&lt;/P&gt;&lt;P&gt;Robby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 14:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-IMPORT-Without-Headers/m-p/104763#M29271</guid>
      <dc:creator>robby_beum</dc:creator>
      <dc:date>2012-10-24T14:49:39Z</dc:date>
    </item>
  </channel>
</rss>

