<?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: Create SAS dataset based on the EXCEL data where the data starts from specific cell value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Create-SAS-dataset-based-on-the-EXCEL-data-where-the-data-starts/m-p/880974#M348116</link>
    <description>&lt;P&gt;If you specify the input RANGE including the header, and set GETNAMES = YES, it will work.&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="JOL_0-1686847094921.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85027iFCA7EA35C7340AB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JOL_0-1686847094921.png" alt="JOL_0-1686847094921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 16:39:00 GMT</pubDate>
    <dc:creator>JOL</dc:creator>
    <dc:date>2023-06-15T16:39:00Z</dc:date>
    <item>
      <title>Create SAS dataset based on the EXCEL data where the data starts from specific cell value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-SAS-dataset-based-on-the-EXCEL-data-where-the-data-starts/m-p/880966#M348112</link>
      <description>&lt;P&gt;I have a data from excel and trying to create the SAS dataset to comparison.&lt;/P&gt;&lt;P&gt;As shown in the below, my data starts from cell B5 and B4 is my header. With the below i was able to get the data from row 5 but how can i remove the empty column and assign the header with B4 values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*excel file*/&lt;BR /&gt;  A   B         C       D       E        F &lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4     Subject  name   address   city     state&lt;BR /&gt;5     101      mary   324 jas   NN        mm&lt;BR /&gt;6     102      second 85  hsd   mkas      ewe&lt;BR /&gt;7     Subject  name   address   city     state&lt;BR /&gt;8     222      tird   67 hhsbd  yes       vgdsd&lt;BR /&gt;9     558      sdhd   792 djsh  kues      shdj&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%macro impo(path=, in=, out=);
%let sfile="\file_path\&amp;amp;in..xlsx";

proc import
datafile=&amp;amp;path
out=&amp;amp;out.
dbms=xlsx replace;
sheet=&amp;amp;sheetbou;
getnames=yes;
datarow=5;
run;

%mend;&lt;BR /&gt;%impo(path=&amp;amp;sfile, in=&amp;amp;inbou, out=&amp;amp;prgm);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-SAS-dataset-based-on-the-EXCEL-data-where-the-data-starts/m-p/880966#M348112</guid>
      <dc:creator>possible</dc:creator>
      <dc:date>2023-06-15T15:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create SAS dataset based on the EXCEL data where the data starts from specific cell value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-SAS-dataset-based-on-the-EXCEL-data-where-the-data-starts/m-p/880974#M348116</link>
      <description>&lt;P&gt;If you specify the input RANGE including the header, and set GETNAMES = YES, it will work.&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="JOL_0-1686847094921.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85027iFCA7EA35C7340AB7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JOL_0-1686847094921.png" alt="JOL_0-1686847094921.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 16:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-SAS-dataset-based-on-the-EXCEL-data-where-the-data-starts/m-p/880974#M348116</guid>
      <dc:creator>JOL</dc:creator>
      <dc:date>2023-06-15T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create SAS dataset based on the EXCEL data where the data starts from specific cell value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Create-SAS-dataset-based-on-the-EXCEL-data-where-the-data-starts/m-p/880975#M348117</link>
      <description>&lt;P&gt;Not sure if this works in import but if you leave 0 as the end of the range, it will automatically take the full range.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Worth a try at least.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 16:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Create-SAS-dataset-based-on-the-EXCEL-data-where-the-data-starts/m-p/880975#M348117</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-15T16:56:16Z</dc:date>
    </item>
  </channel>
</rss>

