<?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 Considering second row in excel table as variable names in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Considering-second-row-in-excel-table-as-variable-names-in-SAS/m-p/300440#M63457</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a SAS dataset using excel table as a source data. The below code is working if first row in excel table contains field names but I am facing&amp;nbsp;problem for&amp;nbsp;few .xlsx files which contains field names in second row.&lt;/P&gt;&lt;P&gt;I am using excel table import into SAS approach since .xlsm files works fine &amp;nbsp;instead of Proc import&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname xlsFile XLSX "/usr/path/Monthly_8.2016.xlsx";
options validvarname=v7;
options SYMBOLGEN MPRINT;

PROC SQL;
    create table  work.raw_data as 
	(select * from xlsFile.'calc result'n);
quit;&lt;/PRE&gt;</description>
    <pubDate>Fri, 23 Sep 2016 16:50:29 GMT</pubDate>
    <dc:creator>jayakumarmm</dc:creator>
    <dc:date>2016-09-23T16:50:29Z</dc:date>
    <item>
      <title>Considering second row in excel table as variable names in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Considering-second-row-in-excel-table-as-variable-names-in-SAS/m-p/300440#M63457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a SAS dataset using excel table as a source data. The below code is working if first row in excel table contains field names but I am facing&amp;nbsp;problem for&amp;nbsp;few .xlsx files which contains field names in second row.&lt;/P&gt;&lt;P&gt;I am using excel table import into SAS approach since .xlsm files works fine &amp;nbsp;instead of Proc import&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname xlsFile XLSX "/usr/path/Monthly_8.2016.xlsx";
options validvarname=v7;
options SYMBOLGEN MPRINT;

PROC SQL;
    create table  work.raw_data as 
	(select * from xlsFile.'calc result'n);
quit;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Sep 2016 16:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Considering-second-row-in-excel-table-as-variable-names-in-SAS/m-p/300440#M63457</guid>
      <dc:creator>jayakumarmm</dc:creator>
      <dc:date>2016-09-23T16:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Considering second row in excel table as variable names in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Considering-second-row-in-excel-table-as-variable-names-in-SAS/m-p/300451#M63459</link>
      <description>&lt;P&gt;Try specifying the range you import. See &lt;A href="http://www.sascommunity.org/wiki/Tips:Use_PROC_SQL_to_Create_SAS_Data_sets_from_Excel_files" target="_self"&gt;the example here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Considering-second-row-in-excel-table-as-variable-names-in-SAS/m-p/300451#M63459</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-09-23T18:13:36Z</dc:date>
    </item>
  </channel>
</rss>

