<?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 Import one sheet from XLSX file into sas  data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-one-sheet-from-XLSX-file-into-sas-data-set/m-p/958109#M373967</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am using XLSX engine to create XLSX file with 4 sheets (Export SAS data sets into XLSX file).&lt;/P&gt;
&lt;P&gt;It is working 100% and I can see the XLSX that was created via SAS .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Ron XLSX "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/Example4sheets.xlsx";

data Ron.cars;
set sashelp.cars;
run;
 
data Ron.classfit;
set sashelp.classfit;
run;
 
data Ron.baseball;
set sashelp.baseball;
run;
 
data Ron.air;
set sashelp.air;
run;
libname Ron clear;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then I close SAS and open SAS again and I want to import the XLSX file -sheet1&amp;nbsp; into SAS data set called&amp;nbsp;&lt;CODE class=" language-sas"&gt;baseball&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;What&amp;nbsp;is&amp;nbsp;the&amp;nbsp;way&amp;nbsp;to&amp;nbsp;do&amp;nbsp;it&amp;nbsp;please?&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 20:22:12 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2025-02-03T20:22:12Z</dc:date>
    <item>
      <title>Import one sheet from XLSX file into sas  data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-one-sheet-from-XLSX-file-into-sas-data-set/m-p/958109#M373967</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I am using XLSX engine to create XLSX file with 4 sheets (Export SAS data sets into XLSX file).&lt;/P&gt;
&lt;P&gt;It is working 100% and I can see the XLSX that was created via SAS .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Ron XLSX "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/Example4sheets.xlsx";

data Ron.cars;
set sashelp.cars;
run;
 
data Ron.classfit;
set sashelp.classfit;
run;
 
data Ron.baseball;
set sashelp.baseball;
run;
 
data Ron.air;
set sashelp.air;
run;
libname Ron clear;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then I close SAS and open SAS again and I want to import the XLSX file -sheet1&amp;nbsp; into SAS data set called&amp;nbsp;&lt;CODE class=" language-sas"&gt;baseball&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;What&amp;nbsp;is&amp;nbsp;the&amp;nbsp;way&amp;nbsp;to&amp;nbsp;do&amp;nbsp;it&amp;nbsp;please?&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 20:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-one-sheet-from-XLSX-file-into-sas-data-set/m-p/958109#M373967</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-02-03T20:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Import one sheet from XLSX file into sas  data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-one-sheet-from-XLSX-file-into-sas-data-set/m-p/958112#M373969</link>
      <description>&lt;P&gt;Which of the four sheets you created do consider SHEET1?&lt;/P&gt;
&lt;P&gt;Looks to me like you created sheets named CARS CLASSFIT BASEBALL and AIR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to copy out CARS then run code like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Ron XLSX "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/Example4sheets.xlsx";
data want;
  set ron.cars;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Feb 2025 20:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-one-sheet-from-XLSX-file-into-sas-data-set/m-p/958112#M373969</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-03T20:36:15Z</dc:date>
    </item>
  </channel>
</rss>

