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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 854 views
  • 0 likes
  • 2 in conversation