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-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
  • 1 reply
  • 886 views
  • 0 likes
  • 2 in conversation