<?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 sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/sql/m-p/25224#M5702</link>
    <description>Hi Friends,&lt;BR /&gt;
&lt;BR /&gt;
I need to create a 4 report &lt;BR /&gt;
&lt;BR /&gt;
1. New items—Memb that were on the previous week report but that are not on the current week reports.&lt;BR /&gt;
2. Worked Items—Memb that are on the current report but that are not the previous week report.&lt;BR /&gt;
3. Current report—everything on the current report&lt;BR /&gt;
4. Summary –listing the count of the following:&lt;BR /&gt;
   a. New Items&lt;BR /&gt;
   B. worked items&lt;BR /&gt;
   C.Current report&lt;BR /&gt;
&lt;BR /&gt;
There is no data to compare with previous week. So I have stored the present dataset in the control table for previous comparison .&lt;BR /&gt;
&lt;BR /&gt;
Current table: present&lt;BR /&gt;
Comparison table: previous week&lt;BR /&gt;
&lt;BR /&gt;
I created a code as below,&lt;BR /&gt;
&lt;BR /&gt;
Proc sql;&lt;BR /&gt;
      Create table newitem as&lt;BR /&gt;
      Select memno, var1, var2, var3 &lt;BR /&gt;
      From present where memno not in (select memno from previousweek);&lt;BR /&gt;
Quit;&lt;BR /&gt;
&lt;BR /&gt;
Proc sql;&lt;BR /&gt;
      Create table workeditem as&lt;BR /&gt;
      Select memno, var1, var2, var3&lt;BR /&gt;
     From previousweek where memno not in (select memno from present);&lt;BR /&gt;
Quit;&lt;BR /&gt;
&lt;BR /&gt;
I need your helps on creating current report and summary report.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance .

Message was edited by: Raveenat</description>
    <pubDate>Wed, 09 Mar 2011 16:07:05 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2011-03-09T16:07:05Z</dc:date>
    <item>
      <title>sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/sql/m-p/25224#M5702</link>
      <description>Hi Friends,&lt;BR /&gt;
&lt;BR /&gt;
I need to create a 4 report &lt;BR /&gt;
&lt;BR /&gt;
1. New items—Memb that were on the previous week report but that are not on the current week reports.&lt;BR /&gt;
2. Worked Items—Memb that are on the current report but that are not the previous week report.&lt;BR /&gt;
3. Current report—everything on the current report&lt;BR /&gt;
4. Summary –listing the count of the following:&lt;BR /&gt;
   a. New Items&lt;BR /&gt;
   B. worked items&lt;BR /&gt;
   C.Current report&lt;BR /&gt;
&lt;BR /&gt;
There is no data to compare with previous week. So I have stored the present dataset in the control table for previous comparison .&lt;BR /&gt;
&lt;BR /&gt;
Current table: present&lt;BR /&gt;
Comparison table: previous week&lt;BR /&gt;
&lt;BR /&gt;
I created a code as below,&lt;BR /&gt;
&lt;BR /&gt;
Proc sql;&lt;BR /&gt;
      Create table newitem as&lt;BR /&gt;
      Select memno, var1, var2, var3 &lt;BR /&gt;
      From present where memno not in (select memno from previousweek);&lt;BR /&gt;
Quit;&lt;BR /&gt;
&lt;BR /&gt;
Proc sql;&lt;BR /&gt;
      Create table workeditem as&lt;BR /&gt;
      Select memno, var1, var2, var3&lt;BR /&gt;
     From previousweek where memno not in (select memno from present);&lt;BR /&gt;
Quit;&lt;BR /&gt;
&lt;BR /&gt;
I need your helps on creating current report and summary report.&lt;BR /&gt;
&lt;BR /&gt;
Thanks in Advance .

Message was edited by: Raveenat</description>
      <pubDate>Wed, 09 Mar 2011 16:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/sql/m-p/25224#M5702</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-03-09T16:07:05Z</dc:date>
    </item>
  </channel>
</rss>

