<?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: Using &amp;quot;WITH&amp;quot; in EG in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559377#M33718</link>
    <description>Thank you for your reply &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22122"&gt;@tsap&lt;/a&gt;. I'm interested in using "WITH", not creating a table.</description>
    <pubDate>Thu, 16 May 2019 15:56:08 GMT</pubDate>
    <dc:creator>jffeudo86</dc:creator>
    <dc:date>2019-05-16T15:56:08Z</dc:date>
    <item>
      <title>Using "WITH" in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559352#M33715</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I use a WITH statement in SAS, or is it possible?&amp;nbsp; Code below returns "Statement is not valid or it is used out of proper order." highlighting the "WITH" .&amp;nbsp; What do I need to do if it's possible?&amp;nbsp; Or is it just an Oracle statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WITH test&lt;BR /&gt;AS (SELECT * FROM xx (OBS=10))&lt;BR /&gt;SELECT test.*;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 15:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559352#M33715</guid>
      <dc:creator>jffeudo86</dc:creator>
      <dc:date>2019-05-16T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using "WITH" in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559363#M33717</link>
      <description>&lt;P&gt;That logic will not work as it is written currently when attempted in SAS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logic in SAS will need to look like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE Test AS
	(SELECT * from InsertTableName (obs=10));
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 15:39:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559363#M33717</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-05-16T15:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using "WITH" in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559377#M33718</link>
      <description>Thank you for your reply &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22122"&gt;@tsap&lt;/a&gt;. I'm interested in using "WITH", not creating a table.</description>
      <pubDate>Thu, 16 May 2019 15:56:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559377#M33718</guid>
      <dc:creator>jffeudo86</dc:creator>
      <dc:date>2019-05-16T15:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using "WITH" in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559395#M33721</link>
      <description>A solution has been accepted. Thank you all.&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Using-quot-WITH-quot-in-EG/m-p/559393#M156191" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Using-quot-WITH-quot-in-EG/m-p/559393#M156191&lt;/A&gt;</description>
      <pubDate>Thu, 16 May 2019 16:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559395#M33721</guid>
      <dc:creator>jffeudo86</dc:creator>
      <dc:date>2019-05-16T16:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using "WITH" in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559407#M33722</link>
      <description>&lt;P&gt;I guess my question is the function of the 'WITH' that you are interested in using. If your intention is printing the 10 observations from that table and not creating a table, then you would make a small modification to the SQL logic I supplied earlier.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
	(SELECT * from InsertTableName (obs=10));
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This will not create a table. It will just print the details from 10 observations&amp;nbsp;on the&amp;nbsp;table specified.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 16:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559407#M33722</guid>
      <dc:creator>tsap</dc:creator>
      <dc:date>2019-05-16T16:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using "WITH" in EG</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559455#M33724</link>
      <description>Sorry if my question was not clear. A solution has been accepted and a link was posted.&lt;BR /&gt;&lt;BR /&gt;Thank you!</description>
      <pubDate>Thu, 16 May 2019 18:59:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Using-quot-WITH-quot-in-EG/m-p/559455#M33724</guid>
      <dc:creator>jffeudo86</dc:creator>
      <dc:date>2019-05-16T18:59:44Z</dc:date>
    </item>
  </channel>
</rss>

