<?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 get SAS to read excel column headers in row 2 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-to-read-excel-column-headers-in-row-2/m-p/479822#M286557</link>
    <description>&lt;P&gt;Export to csv from Excel and read with a custom data step, or remove the first line in Excel.&lt;/P&gt;
&lt;P&gt;Both libname xlsx and proc import do not support variable names in a line other than the first.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 07:22:29 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-07-20T07:22:29Z</dc:date>
    <item>
      <title>How to get SAS to read excel column headers in row 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-to-read-excel-column-headers-in-row-2/m-p/479811#M286556</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to read in an excel file (attached) into SAS with column headers starting in row 2. My objective is to get SAS to recognise that column names are in row 2 and therefore pick these up as column names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have written so far is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;options validvarname=v7;&amp;nbsp;&lt;BR /&gt;libname contact xlsx '/home/frupaul0/Lucamod/Contact.xlsx';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=contact.contact_info;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And what I get from this is (partial output):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-07-20 at 07.27.34.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21886i7E0A569FF3C3CA88/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2018-07-20 at 07.27.34.png" alt="Screen Shot 2018-07-20 at 07.27.34.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So SAS&amp;nbsp;has considered the column headers in row to to be variable values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 06:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-to-read-excel-column-headers-in-row-2/m-p/479811#M286556</guid>
      <dc:creator>frupaul</dc:creator>
      <dc:date>2018-07-20T06:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to get SAS to read excel column headers in row 2</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-to-read-excel-column-headers-in-row-2/m-p/479822#M286557</link>
      <description>&lt;P&gt;Export to csv from Excel and read with a custom data step, or remove the first line in Excel.&lt;/P&gt;
&lt;P&gt;Both libname xlsx and proc import do not support variable names in a line other than the first.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 07:22:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-SAS-to-read-excel-column-headers-in-row-2/m-p/479822#M286557</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-20T07:22:29Z</dc:date>
    </item>
  </channel>
</rss>

