<?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: Importing Excel , and proper variable names in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689029#M209428</link>
    <description>I tried as u suggested, now I am getting the A. B, C.. in varaible I used the rang="sheet1$A2:L5". If possible can you write a code</description>
    <pubDate>Mon, 05 Oct 2020 22:42:34 GMT</pubDate>
    <dc:creator>SASuserlot</dc:creator>
    <dc:date>2020-10-05T22:42:34Z</dc:date>
    <item>
      <title>Importing Excel , and proper variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689019#M209420</link>
      <description>&lt;P&gt;I am trying import the excel file into sas, for some reason, I am running into issues where row I want to display as&amp;nbsp; variable is not working properly. Any help greatly appreciated. I want titles as variable names and read it as data from the next row.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PROC IMPORT 
    OUT= YourNewTable
    DATAFILE= "myfolder/excelfilename.xlsx" 
    DBMS=xlsx 
    REPLACE;
    SHEET="Sheet1";
    GETNAMES=YES;&lt;BR /&gt;    range="Sheet1$A2:L4"
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I used above code, I am getting dataset , variable name as sponsor information then A,B,C . below is the excel sheet&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50191iA2FD63D540FCBC1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation.png" alt="Annotation.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 22:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689019#M209420</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-05T22:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel , and proper variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689026#M209425</link>
      <description>&lt;P&gt;The first row of the file provides the information that SAS uses to create variable names. Since you have two rows of "header" information the results are as you describe. Delete the entire row that contains the "Sponsor Information".&lt;/P&gt;
&lt;P&gt;Then import.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 22:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689026#M209425</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-05T22:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel , and proper variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689029#M209428</link>
      <description>I tried as u suggested, now I am getting the A. B, C.. in varaible I used the rang="sheet1$A2:L5". If possible can you write a code</description>
      <pubDate>Mon, 05 Oct 2020 22:42:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689029#M209428</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-05T22:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel , and proper variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689031#M209430</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350312"&gt;@SASuserlot&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I tried as u suggested, now I am getting the A. B, C.. in varaible I used the rang="sheet1$A2:L5". If possible can you write a code&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;remove the range or change it to read the first row.&lt;/P&gt;
&lt;P&gt;I really don't use ranges but suppose sheet1$A1:L4 should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 22:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689031#M209430</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-05T22:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel , and proper variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689036#M209431</link>
      <description>&lt;P&gt;PROC IMPORT&lt;BR /&gt;OUT= SDSP&lt;BR /&gt;DATAFILE= "C:\Users\xxx\Desktop\New folder\xx\1.xlsx"&lt;BR /&gt;DBMS=xlsx&lt;BR /&gt;REPLACE;&lt;BR /&gt;SHEET="Sheet1";&lt;BR /&gt;GETNAMES=yes;&lt;BR /&gt;range="Sheet1$A2:0";&lt;BR /&gt;/* SCANTEXT=YES;*/&lt;BR /&gt;/* USEDATE=YES;*/&lt;BR /&gt;/* SCANTIME=YES;*/&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASuserlot_0-1601940074679.png" style="width: 742px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/50192i207028B1B03926B3/image-dimensions/742x89?v=v2" width="742" height="89" role="button" title="SASuserlot_0-1601940074679.png" alt="SASuserlot_0-1601940074679.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 23:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689036#M209431</guid>
      <dc:creator>SASuserlot</dc:creator>
      <dc:date>2020-10-05T23:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Importing Excel , and proper variable names</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689047#M209439</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/350312"&gt;@SASuserlot&lt;/a&gt;&amp;nbsp; - What happens if you remove the RANGE statement?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 00:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-Excel-and-proper-variable-names/m-p/689047#M209439</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-10-06T00:44:19Z</dc:date>
    </item>
  </channel>
</rss>

