<?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 Simulating a SQL step using SAS in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Simulating-a-SQL-step-using-SAS/m-p/62639#M17818</link>
    <description>How can I simulate this using sas with the least number of steps and preferably using proc sql &lt;BR /&gt;
&lt;BR /&gt;
WITH TMID_900 (CUR_TM_ID) AS&lt;BR /&gt;
( SELECT EC900.TM_ID&lt;BR /&gt;
  FROM   ru99.test EC900&lt;BR /&gt;
  WHERE ID &amp;gt; 2 AND&lt;BR /&gt;
        ID &amp;lt; 9&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
select * from ru99.salv_item_id, TMID_900 TMID_900  where id = TMID_900.ID ;&lt;BR /&gt;
&lt;BR /&gt;
This is basically a loop that passes values from the top to be used as input in the where part of the query.</description>
    <pubDate>Fri, 21 Nov 2008 20:29:08 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-11-21T20:29:08Z</dc:date>
    <item>
      <title>Simulating a SQL step using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simulating-a-SQL-step-using-SAS/m-p/62639#M17818</link>
      <description>How can I simulate this using sas with the least number of steps and preferably using proc sql &lt;BR /&gt;
&lt;BR /&gt;
WITH TMID_900 (CUR_TM_ID) AS&lt;BR /&gt;
( SELECT EC900.TM_ID&lt;BR /&gt;
  FROM   ru99.test EC900&lt;BR /&gt;
  WHERE ID &amp;gt; 2 AND&lt;BR /&gt;
        ID &amp;lt; 9&lt;BR /&gt;
)&lt;BR /&gt;
&lt;BR /&gt;
select * from ru99.salv_item_id, TMID_900 TMID_900  where id = TMID_900.ID ;&lt;BR /&gt;
&lt;BR /&gt;
This is basically a loop that passes values from the top to be used as input in the where part of the query.</description>
      <pubDate>Fri, 21 Nov 2008 20:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simulating-a-SQL-step-using-SAS/m-p/62639#M17818</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-21T20:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simulating a SQL step using SAS</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Simulating-a-SQL-step-using-SAS/m-p/62640#M17819</link>
      <description>Maybe this:&lt;BR /&gt;
proc sql;&lt;BR /&gt;
select * from ru99.salv_item_id, &lt;BR /&gt;
(SELECT EC900.TM_ID&lt;BR /&gt;
FROM ru99.test EC900&lt;BR /&gt;
WHERE ID &amp;gt; 2 AND&lt;BR /&gt;
ID &amp;lt; 9) TMID_900&lt;BR /&gt;
where id=tmid_900.id;</description>
      <pubDate>Sat, 22 Nov 2008 03:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Simulating-a-SQL-step-using-SAS/m-p/62640#M17819</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-11-22T03:20:53Z</dc:date>
    </item>
  </channel>
</rss>

