BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi Friends,

I need to create a 4 report

1. New items—Memb that were on the previous week report but that are not on the current week reports.
2. Worked Items—Memb that are on the current report but that are not the previous week report.
3. Current report—everything on the current report
4. Summary –listing the count of the following:
a. New Items
B. worked items
C.Current report

There is no data to compare with previous week. So I have stored the present dataset in the control table for previous comparison .

Current table: present
Comparison table: previous week

I created a code as below,

Proc sql;
Create table newitem as
Select memno, var1, var2, var3
From present where memno not in (select memno from previousweek);
Quit;

Proc sql;
Create table workeditem as
Select memno, var1, var2, var3
From previousweek where memno not in (select memno from present);
Quit;

I need your helps on creating current report and summary report.

Thanks in Advance . Message was edited by: Raveenat

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 0 replies
  • 764 views
  • 0 likes
  • 1 in conversation