BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I need to create a summary report for this 3 dataset that have created on this macros.

%macro cnt_inv (tbl=, vr=, table=);
PROC SQL;
create table &tbl. as
select count(*) as &vr. from &table.
where compno in (&complist.) ;
quit;
%mend cnt_inv;

%cnt_inv(tbl=pr_inv_ny_a, vr=prior_wk_inv, table= outf_old);
%cnt_inv(tbl=wrkd_itms_ny_a, vr=worked_inv, table=workeditem);
%cnt_inv(tbl=nw_itms_ny_a, vr=new_items, table=newitem);

Can anyone suggest me..

Thanks in Advance
1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12
Combine the three tables into one and then use one of the mulititude of SAS reporting tools (PRINT, REPORT, TABULATE, even the DATA step). PROC PRINT can list the data. You've only got 3 numbers, so it is unclear what you are really trying to do.

You can search the SAS web site for documentation and BBUs about each of the tools.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 569 views
  • 0 likes
  • 2 in conversation