<?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 import XLS file when variable names in first two rows in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-XLS-file-when-variable-names-in-first-two-rows/m-p/66571#M19014</link>
    <description>owo!! Great!!&lt;BR /&gt;
&lt;BR /&gt;
That is what I need! Thanks!!!</description>
    <pubDate>Wed, 10 Mar 2010 16:49:56 GMT</pubDate>
    <dc:creator>Ken_oy</dc:creator>
    <dc:date>2010-03-10T16:49:56Z</dc:date>
    <item>
      <title>how to import XLS file when variable names in first two rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-XLS-file-when-variable-names-in-first-two-rows/m-p/66569#M19012</link>
      <description>I try to use button file-&amp;gt;import data to import data from a XLS file. &lt;BR /&gt;
&lt;BR /&gt;
But the problem is, variable names are in the first two rows. Is there any option I can choose the first tow rows as variable names?&lt;BR /&gt;
&lt;BR /&gt;
for example:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;&lt;B&gt;For example:&lt;BR /&gt;
Variable A      Variable B&lt;BR /&gt;
v1 v2 v3 v4      v5 v6 v7 v8&lt;BR /&gt;
&lt;BR /&gt;
I try to import all these data as:&lt;BR /&gt;
VAv1 VAv2 VAv3 VAv4....&lt;/B&gt;&lt;BR /&gt;
&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks!!</description>
      <pubDate>Wed, 10 Mar 2010 15:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-import-XLS-file-when-variable-names-in-first-two-rows/m-p/66569#M19012</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2010-03-10T15:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to import XLS file when variable names in first two rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-XLS-file-when-variable-names-in-first-two-rows/m-p/66570#M19013</link>
      <description>I think you are going to have to change the variable names in Excel before importing them to SAS.  You can do it very easily using the formulas of Excel.  Use the formula below in cell A1 to create a new variables name:&lt;BR /&gt;
&lt;BR /&gt;
="VA" &amp;amp; [Sheet1!]A2&lt;BR /&gt;
&lt;BR /&gt;
This will create a new variable name in the cell A1 with the name: Vav1&lt;BR /&gt;
&lt;BR /&gt;
To make it even easier, replace all "Variable A" with "VA" and Variable B" with VB" before using the above the formula.  The use the below solution in cell A1:&lt;BR /&gt;
&lt;BR /&gt;
= [Sheet1!]A1 &amp;amp; [Sheet1!]A2&lt;BR /&gt;
&lt;BR /&gt;
Copy and paste this formula across the row, and there you go, you have your new variable names... Then copy you entire data to this new sheet.  Import this new sheet...&lt;BR /&gt;
&lt;BR /&gt;
Hope this helps...</description>
      <pubDate>Wed, 10 Mar 2010 16:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-import-XLS-file-when-variable-names-in-first-two-rows/m-p/66570#M19013</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-03-10T16:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to import XLS file when variable names in first two rows</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-import-XLS-file-when-variable-names-in-first-two-rows/m-p/66571#M19014</link>
      <description>owo!! Great!!&lt;BR /&gt;
&lt;BR /&gt;
That is what I need! Thanks!!!</description>
      <pubDate>Wed, 10 Mar 2010 16:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-import-XLS-file-when-variable-names-in-first-two-rows/m-p/66571#M19014</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2010-03-10T16:49:56Z</dc:date>
    </item>
  </channel>
</rss>

