<?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: Creating a permanent table in the output folder (SAS Programming 1 Lesson 4) in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/646449#M22075</link>
    <description>&lt;P&gt;The LIBNAME statement is only meant to associate a symbolic name (OUT in your example) to a location (or a set of location, but we don't need to go into that here).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;References to data sets (or "table" in you example) are not made in a libname statement, but are made in DATA statements, SET, MERGE or a few other statements). &amp;nbsp;&amp;nbsp; I.e. that's where two-level names (libname.tablename) can occur.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what did you sas log say&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;About the &lt;EM&gt;&lt;STRONG&gt;libname out.fox&lt;/STRONG&gt;&lt;/EM&gt; statement&lt;/LI&gt;
&lt;LI&gt;What two-level name was created by your DATA step?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
    <pubDate>Sun, 10 May 2020 03:28:41 GMT</pubDate>
    <dc:creator>mkeintz</dc:creator>
    <dc:date>2020-05-10T03:28:41Z</dc:date>
    <item>
      <title>Creating a permanent table in the output folder (SAS Programming 1 Lesson 4)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/646435#M22074</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having trouble creating a permanent table for an activity in the Programming Course. More specifically:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Write a DATA step to read the&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;pg1.np_species&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;table and create a new table named&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fox&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;&lt;SPAN&gt;: If you are using SAS Studio, try creating&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;fox&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;as a permanent table in the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;EPG194/output&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;folder"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;* if you are creating a permanent table, you must submit a LIBNAME statement and then reference out.fox;
* libname out "path-to-EPG194/output";&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;I am able to perform the steps and processes after this but for some reason I can't create a permanent table for this solution. It isn't required, but I want to know my mistake to better understand SAS. Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;libname out.fox;&lt;BR /&gt;libname out "/folders/myfolders/EPG194/output";&lt;BR /&gt;&lt;BR /&gt;data fox;&lt;BR /&gt;    set pg1.np_species;&lt;BR /&gt;    where Category='Mammal' and upcase(Common_Names) like '%FOX%';  &lt;BR /&gt;    drop Category Record_Status Occurrence Nativeness;&lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks for the assistance.&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 01:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/646435#M22074</guid>
      <dc:creator>fabroomeiv</dc:creator>
      <dc:date>2020-05-10T01:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a permanent table in the output folder (SAS Programming 1 Lesson 4)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/646449#M22075</link>
      <description>&lt;P&gt;The LIBNAME statement is only meant to associate a symbolic name (OUT in your example) to a location (or a set of location, but we don't need to go into that here).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;References to data sets (or "table" in you example) are not made in a libname statement, but are made in DATA statements, SET, MERGE or a few other statements). &amp;nbsp;&amp;nbsp; I.e. that's where two-level names (libname.tablename) can occur.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So what did you sas log say&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;About the &lt;EM&gt;&lt;STRONG&gt;libname out.fox&lt;/STRONG&gt;&lt;/EM&gt; statement&lt;/LI&gt;
&lt;LI&gt;What two-level name was created by your DATA step?&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 03:28:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/646449#M22075</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2020-05-10T03:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a permanent table in the output folder (SAS Programming 1 Lesson 4)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/646536#M22076</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*This does nothing;
libname out.fox;

*This creates a permanent library - output folder must exist already;
libname out "/folders/myfolders/EPG194/output";

*you have not specified the library so your data set is saved to WORK;
data fox;
    set pg1.np_species;
    where Category='Mammal' and upcase(Common_Names) like '%FOX%';  
    drop Category Record_Status Occurrence Nativeness;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The correct code is as follows:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
libname out "/folders/myfolders/EPG194/output";

data out.fox;
    set pg1.np_species;
    where Category='Mammal' and upcase(Common_Names) like '%FOX%';  
    drop Category Record_Status Occurrence Nativeness;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 May 2020 17:45:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/646536#M22076</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-05-10T17:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a permanent table in the output folder (SAS Programming 1 Lesson 4)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/647889#M22196</link>
      <description>&lt;P&gt;Sorry for the delay, I just started working and that took up the last few days. I figured out the issue. I wasn't referencing out correctly, and the path to the output folder somehow changed, making my reference incorrect. It is fixed now. Thank you for the help and explanation.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 17:50:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/647889#M22196</guid>
      <dc:creator>fabroomeiv</dc:creator>
      <dc:date>2020-05-14T17:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a permanent table in the output folder (SAS Programming 1 Lesson 4)</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/647890#M22197</link>
      <description>&lt;P&gt;Thanks for the help and explanation. I initially had the path to the output folder wrong. When it didn't reference out I got confused and started making more mistakes.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 17:51:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Creating-a-permanent-table-in-the-output-folder-SAS-Programming/m-p/647890#M22197</guid>
      <dc:creator>fabroomeiv</dc:creator>
      <dc:date>2020-05-14T17:51:32Z</dc:date>
    </item>
  </channel>
</rss>

