<?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: Use SET statement to concatenate the data of the 3 excel sheets in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/597946#M16221</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/284230"&gt;@YangYY&lt;/a&gt;&amp;nbsp; - Check to see if SAS/ACCESS to PC Files is installed and licensed:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;

proc setinit;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 19 Oct 2019 23:01:59 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2019-10-19T23:01:59Z</dc:date>
    <item>
      <title>Use SET statement to concatenate the data of the 3 excel sheets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/592367#M15346</link>
      <description>&lt;P&gt;I am asked to use set statement to concatenate the data of the 3 execl sheets into a SAS data set. And use INDSNAME option in SET statement to record which data is from which worksheet.&lt;/P&gt;
&lt;P&gt;But I don't know how. My data has been uploaded.&amp;nbsp; Anyone could help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Sep 2019 02:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/592367#M15346</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-09-30T02:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Use SET statement to concatenate the data of the 3 excel sheets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/592369#M15347</link>
      <description>&lt;P&gt;Something like this should do it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname oil excel "oil_countries.xlsx";

data oil;
  set oil.oil_production
      oil.oil_consumption
      oil.oil_reserves
      indsname = sheet_name
     ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Sep 2019 05:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/592369#M15347</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-09-28T05:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Use SET statement to concatenate the data of the 3 excel sheets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/592536#M15369</link>
      <description>&lt;P&gt;Thank you for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the log file shows error.&lt;/P&gt;
&lt;P&gt;My code is&lt;/P&gt;
&lt;P&gt;libname assign03 excel "oil_countries.xlsx";&lt;/P&gt;
&lt;P&gt;data oil;&lt;BR /&gt;set assign03.oil_production&lt;BR /&gt;assign03.oil_consumption&lt;BR /&gt;assign03.oil_reserves&lt;BR /&gt;indsname = sheet_name&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log says&lt;/P&gt;
&lt;DIV class="sasSource"&gt;70&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;71 libname assign03 excel "oil_countries.xlsx";&lt;/DIV&gt;
&lt;DIV id="sasLogError1_1569809768948" class="sasError"&gt;ERROR: The EXCEL engine cannot be found.&lt;/DIV&gt;
&lt;DIV id="sasLogError2_1569809768948" class="sasError"&gt;ERROR: Error in the LIBNAME statement.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;72&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;73 data oil;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;74 set assign03.oil_production&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75 assign03.oil_consumption&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 assign03.oil_reserves&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77 indsname = sheet_name&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 ;&lt;/DIV&gt;
&lt;DIV id="sasLogError3_1569809768948" class="sasError"&gt;ERROR: Libref ASSIGN03 is not assigned.&lt;/DIV&gt;
&lt;DIV id="sasLogError4_1569809768948" class="sasError"&gt;ERROR: Libref ASSIGN03 is not assigned.&lt;/DIV&gt;
&lt;DIV id="sasLogError5_1569809768948" class="sasError"&gt;ERROR: Libref ASSIGN03 is not assigned.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;79 run;&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Sep 2019 02:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/592536#M15369</guid>
      <dc:creator>YangYY</dc:creator>
      <dc:date>2019-09-30T02:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use SET statement to concatenate the data of the 3 excel sheets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/597946#M16221</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/284230"&gt;@YangYY&lt;/a&gt;&amp;nbsp; - Check to see if SAS/ACCESS to PC Files is installed and licensed:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc product_status;
run;

proc setinit;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 19 Oct 2019 23:01:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/597946#M16221</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-10-19T23:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Use SET statement to concatenate the data of the 3 excel sheets</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/597982#M16230</link>
      <description>&lt;P&gt;The EXCEL engine will only work if you are running on WIndows.&lt;/P&gt;
&lt;P&gt;Try the XLSX engine instead.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Oct 2019 14:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Use-SET-statement-to-concatenate-the-data-of-the-3-excel-sheets/m-p/597982#M16230</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-10-20T14:43:30Z</dc:date>
    </item>
  </channel>
</rss>

