<?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 Using dataset from a permanent library in proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424506#M281021</link>
    <description>&lt;P&gt;I am using proc sql to combine my datasets. One of my datasets - a large one - is stored in permanent library. When I use proc sql with the following code, an error message shows up and the system stops processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table XYZ as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from Project.ABC inner join DEF&lt;/P&gt;&lt;P&gt;on Project.ABC.id=DEF.id&lt;/P&gt;&lt;P&gt;order by DEF.id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure whether it is possible to use a permanently stored dataset in proc sql. When I remove the Project. (my library name) from the on statement, it says the file does not exist.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 06:46:59 GMT</pubDate>
    <dc:creator>Mahip</dc:creator>
    <dc:date>2018-01-03T06:46:59Z</dc:date>
    <item>
      <title>Using dataset from a permanent library in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424506#M281021</link>
      <description>&lt;P&gt;I am using proc sql to combine my datasets. One of my datasets - a large one - is stored in permanent library. When I use proc sql with the following code, an error message shows up and the system stops processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table XYZ as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from Project.ABC inner join DEF&lt;/P&gt;&lt;P&gt;on Project.ABC.id=DEF.id&lt;/P&gt;&lt;P&gt;order by DEF.id;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure whether it is possible to use a permanently stored dataset in proc sql. When I remove the Project. (my library name) from the on statement, it says the file does not exist.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 06:46:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424506#M281021</guid>
      <dc:creator>Mahip</dc:creator>
      <dc:date>2018-01-03T06:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using dataset from a permanent library in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424508#M281022</link>
      <description>&lt;P&gt;it is certainly possible and absolute to use a permanent sas dataset with a two level name i.e libref.dataset name in proc sql. Please post the log here in the forum&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 07:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424508#M281022</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-03T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using dataset from a permanent library in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424510#M281023</link>
      <description>&lt;P&gt;Here is the log:&lt;/P&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="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17605i52CB87C5ACF4EF40/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 07:23:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424510#M281023</guid>
      <dc:creator>Mahip</dc:creator>
      <dc:date>2018-01-03T07:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using dataset from a permanent library in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424511#M281024</link>
      <description>&lt;P&gt;Got it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Remove the libname in the &lt;STRONG&gt;on clause&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;EM&gt;run again&lt;/EM&gt;&lt;/STRONG&gt;. Keep that as a two level name such as membername.columnname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like:&lt;STRONG&gt; on record.id=record2.id&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 07:31:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424511#M281024</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-03T07:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using dataset from a permanent library in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424512#M281025</link>
      <description>&lt;P&gt;DO NOT POST LOGS IN PICTURES!&lt;/P&gt;
&lt;P&gt;Logs are TEXT(!) and should therefore posted as such, so that their contents can easily be copy/pasted for reference, web searching and testing.&lt;/P&gt;
&lt;P&gt;Use the {i} icon to post log text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should use table aliases and use those to reference your columns, thereby avoiding a three-stage name.&lt;/P&gt;
&lt;P&gt;Your use of the asterisk in the select will cause a WARNING for the already existing variable id; don't use the asterisk, use an exhaustive list of the wanted variables instead.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 07:37:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424512#M281025</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-03T07:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using dataset from a permanent library in proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424513#M281026</link>
      <description>&lt;P&gt;Use table alias as suggested by Kurt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table XYZ as&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;from Project.ABC &lt;STRONG&gt;a&lt;/STRONG&gt; inner join DEF &lt;STRONG&gt;b&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;on a.id=b.id&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;order by &lt;STRONG&gt;b.id;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 07:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-dataset-from-a-permanent-library-in-proc-sql/m-p/424513#M281026</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-03T07:40:35Z</dc:date>
    </item>
  </channel>
</rss>

