<?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: libname  XLSX in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/libname-XLSX/m-p/958115#M373971</link>
    <description>&lt;P&gt;The BASE SAS libref engine need to be pointed to a directory.&amp;nbsp; It will create/look for files with .sas7bdat extension in that directory.&lt;/P&gt;
&lt;P&gt;The XLSX libref engine needs to be pointed to a FILE.&amp;nbsp; It will create/look for worksheets within that file.&lt;/P&gt;</description>
    <pubDate>Mon, 03 Feb 2025 20:38:42 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2025-02-03T20:38:42Z</dc:date>
    <item>
      <title>libname  XLSX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-XLSX/m-p/958110#M373968</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Why Do I get error here?&lt;/P&gt;
&lt;P&gt;Should I always write the XLSX file name in the path?&lt;/P&gt;
&lt;P&gt;(When I export into sas data set and not XLSX file then I dont write the data set name in the path ...)&lt;/P&gt;
&lt;P&gt;ERROR: File RON.EX3.DATA does not exist.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Ron clear;
libname Ron XLSX "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/";
data Ron.EX3;
set sashelp.cars;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and here it is working well with&amp;nbsp; no error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname Ron clear;
libname Ron  "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/";
data Ron.EX3;
set sashelp.cars;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note-&lt;/P&gt;
&lt;P&gt;Here are some examples&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;

/***WAY1--Create XLSX file  called EX1 with one sheet called EX1***/
libname Ron clear;
libname Ron XLSX "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/EX1.xlsx";

data Ron.EX1;
set sashelp.cars;
run;


/***WAY2--Create XLSX file  called EX2with one sheet called MySheet***/
libname Ron clear;
libname Ron XLSX "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/EX2.xlsx";
data Ron.MySheet;
set sashelp.cars;
run;


/***WAY3--Create XLSX file  called EX3**/
/**Not work !!error***/
libname Ron clear;
libname Ron XLSX "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/";
data Ron.EX3;
set sashelp.cars;
run;

/**Work well**/
libname Ron clear;
libname Ron  "/usr/local/SAS/SASUsers/LabRet/UserDir/Udclk79/Targilim/";
data Ron.EX3;
set sashelp.cars;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 20:30:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-XLSX/m-p/958110#M373968</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2025-02-03T20:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: libname  XLSX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-XLSX/m-p/958115#M373971</link>
      <description>&lt;P&gt;The BASE SAS libref engine need to be pointed to a directory.&amp;nbsp; It will create/look for files with .sas7bdat extension in that directory.&lt;/P&gt;
&lt;P&gt;The XLSX libref engine needs to be pointed to a FILE.&amp;nbsp; It will create/look for worksheets within that file.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 20:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-XLSX/m-p/958115#M373971</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-02-03T20:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: libname  XLSX</title>
      <link>https://communities.sas.com/t5/SAS-Programming/libname-XLSX/m-p/958124#M373976</link>
      <description>&lt;P&gt;Think of the XLSX file as a "folder" for data sets, and each sheet is a data set within that folder. The XLSX engine (like the JSON engine, XML engine and others) can work with a collection of "data tables" within one actual file.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2025 21:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/libname-XLSX/m-p/958124#M373976</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2025-02-03T21:37:36Z</dc:date>
    </item>
  </channel>
</rss>

