<?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 LIBNAME in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604703#M17128</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created pg3 library then i want to import&amp;nbsp; datafile for this library but i take this note&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: Import cancelled. Output dataset WORK.DENEME already exists. Specify REPLACE option to overwrite it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can u explain this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME pg3 XLSX "/home/cetinkaygaldurak1/sasuser.v94/ULKE3.xlsx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME REFFILE '/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx';&lt;/P&gt;&lt;P&gt;proc import datafile=REFFILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=xlsx&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=pg3.deneme;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet=ulke2_s;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2019 15:55:11 GMT</pubDate>
    <dc:creator>cetin</dc:creator>
    <dc:date>2019-11-16T15:55:11Z</dc:date>
    <item>
      <title>LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604703#M17128</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i created pg3 library then i want to import&amp;nbsp; datafile for this library but i take this note&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;NOTE: Import cancelled. Output dataset WORK.DENEME already exists. Specify REPLACE option to overwrite it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can u explain this&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for a lot&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME pg3 XLSX "/home/cetinkaygaldurak1/sasuser.v94/ULKE3.xlsx";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILENAME REFFILE '/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx';&lt;/P&gt;&lt;P&gt;proc import datafile=REFFILE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbms=xlsx&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; out=pg3.deneme;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet=ulke2_s;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 15:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604703#M17128</guid>
      <dc:creator>cetin</dc:creator>
      <dc:date>2019-11-16T15:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604706#M17131</link>
      <description>&lt;P&gt;This seems to be a question about PROC IMPORT.&amp;nbsp; Why did you use LIBNAME as the topic for the question?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the error message you told PROC IMPORT to create a NEW data set named&amp;nbsp;&lt;SPAN&gt;WORK.DENEME&amp;nbsp;but and it already existed. If you want PROC IMPORT to remove the existing dataset then add the REPLACE option to the PROC IMPORT statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The same thing will apply to the SAS code you included if the dataset&amp;nbsp;pg3.deneme (actually worksheet since you are pointing to an XLSX file) already exists.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604706#M17131</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-16T16:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604708#M17132</link>
      <description>&lt;P&gt;hi tom;&lt;/P&gt;&lt;P&gt;you are right about subject;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;you said that "NEW data set named&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;WORK.DENEME" but i didnt use work i used pg3 library&amp;nbsp; pg3.deneme&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;so pg3 library dont have any data set&amp;nbsp; named deneme&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604708#M17132</guid>
      <dc:creator>cetin</dc:creator>
      <dc:date>2019-11-16T16:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604709#M17133</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/175515"&gt;@cetin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hi tom;&lt;/P&gt;
&lt;P&gt;you are right about subject;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;you said that "NEW data set named&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;WORK.DENEME" but i didnt use work i used pg3 library&amp;nbsp; pg3.deneme&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;so pg3 library dont have any data set&amp;nbsp; named deneme&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have never seen the SAS log report that it is using a different dataset than the code requested.&amp;nbsp; &amp;nbsp;Remember that if you use a one level name, like DENEME, then it is assumed to be in the WORK library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the lines from the log (make sure to use the Insert Code icon in the editor menu so that lines don't get reflowed).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:29:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604709#M17133</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-16T16:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604711#M17134</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME pg3 XLSX "/home/cetinkaygaldurak1/sasuser.v94/ULKE3.xlsx";

FILENAME REFFILE '/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx';
proc import datafile=REFFILE
            dbms=xlsx    
            out=pg3.deneme;
    sheet=ulke2_s;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604711#M17134</guid>
      <dc:creator>cetin</dc:creator>
      <dc:date>2019-11-16T16:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604713#M17135</link>
      <description>The lines in the SAS log will show line numbers before the lines of code and have messages from SAS like in your original post.  That is just the same lines of code that you posted before.  To tell PROC IMPORT it is ok to replace an existing dataset add the word REPLACE to the PROC  IMPORT statement.&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Nov 2019 16:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604713#M17135</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-16T16:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604742#M17139</link>
      <description>&lt;P&gt;sory i am writing late&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that code dont work&lt;/P&gt;&lt;LI-CODE lang="sas"&gt;&amp;lt;span class="token statement"&amp;gt;FILENAME&amp;lt;/span&amp;gt; REFFILE &amp;lt;span class="token string"&amp;gt;'/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx'&amp;lt;/span&amp;gt;&amp;lt;span class="token punctuation"&amp;gt;;&amp;lt;/span&amp;gt;
&amp;lt;span class="token procnames"&amp;gt;proc&amp;lt;/span&amp;gt; &amp;lt;span class="token procnames"&amp;gt;import&amp;lt;/span&amp;gt; datafile&amp;lt;span class="token operator"&amp;gt;=&amp;lt;/span&amp;gt;REFFILE
            dbms&amp;lt;span class="token operator"&amp;gt;=&amp;lt;/span&amp;gt;xlsx    
            out&amp;lt;span class="token operator"&amp;gt;=&amp;lt;/span&amp;gt;pg3&amp;lt;span class="token punctuation"&amp;gt;.&amp;lt;/span&amp;gt;deneme&amp;lt;span class="token punctuation"&amp;gt;;&amp;lt;/span&amp;gt;
    sheet&amp;lt;span class="token operator"&amp;gt;=&amp;lt;/span&amp;gt;ulke2_s&amp;lt;span class="token punctuation"&amp;gt;;&amp;lt;/span&amp;gt;
&amp;lt;span class="token procnames"&amp;gt;run&amp;lt;/span&amp;gt;&amp;lt;span class="token punctuation"&amp;gt;;&amp;lt;/span&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this one is working why i dont add my dataset name is deneme&amp;nbsp; at pg3 library&amp;nbsp; and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can add deneme2 data to the work library&amp;nbsp; what is the difference i dont understand sory long question&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME REFFILE '/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx';
proc import datafile=REFFILE
            dbms=xlsx    
            out=work.deneme;
    sheet=ulke2_s;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME REFFILE '/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx';
proc import datafile=REFFILE
            dbms=xlsx    
            out=work.deneme2;
    sheet=ulke2_s;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 20:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604742#M17139</guid>
      <dc:creator>cetin</dc:creator>
      <dc:date>2019-11-16T20:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604751#M17140</link>
      <description>&lt;P&gt;i think first code is working with xlsx engine so i dont add any dataset this library ---------------------(libname=pg3)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME pg3 XLSX "/home/cetinkaygaldurak1/sasuser.v94/ULKE3.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FILENAME REFFILE '/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx';
proc import datafile=REFFILE
            dbms=xlsx    
            out=pg3.deneme
            replace;
    sheet=ulke2_s;
run;&lt;/CODE&gt;&lt;/PRE&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="Ek Açıklama 2019-11-17 000848.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/34031i63A8A53F38E069CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ek Açıklama 2019-11-17 000848.png" alt="Ek Açıklama 2019-11-17 000848.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 21:14:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604751#M17140</guid>
      <dc:creator>cetin</dc:creator>
      <dc:date>2019-11-16T21:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604760#M17141</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME pg3 XLSX "/home/cetinkaygaldurak1/sasuser.v94/ULKE3.xlsx";
FILENAME REFFILE '/home/cetinkaygaldurak1/sasuser.v94/ULKE2_S.xlsx';
proc import datafile=REFFILE
            dbms=xlsx    
            out=pg3.deneme
            replace;
    sheet=ulke2_s;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The error is in the first line. You have established the libname PG3 to point to an Excel file. But you don't want that, as the OUT= creates a SAS data set and not an excel file. Thus, libname PG3 must be a folder, and not an Excel file (and not a file of any type), for example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname pg3 "/home/cetinkaygaldurak1/sasuser.v9";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 16 Nov 2019 23:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604760#M17141</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-11-16T23:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: LIBNAME</title>
      <link>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604761#M17142</link>
      <description>&lt;P&gt;Why do you want to convert an Excel sheet into a dataset and then immediately convert it back into another excel sheet?&lt;/P&gt;
&lt;P&gt;What is the overall goal?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2019 23:44:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/LIBNAME/m-p/604761#M17142</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-16T23:44:40Z</dc:date>
    </item>
  </channel>
</rss>

