BookmarkSubscribeRSS Feed
RichardAD
Quartz | Level 8

If you want the summary output as a data set, you will also want to look into the Proc MEANS option STACKODSOUTPUT.

You are summarizing data in different data sets (tbl=Y_TTT*|L_TTT*) you will need, at a minimum, one use of Proc MEANS per table.

If the variables being summarized in the separate table are exclusive to a table, you probably want to stick to one MEANS per table. However, when producing output data for a wide audience, you would be well served to have the source data set name in the summary results.

If the data set structures are similar enough in 'identity of measure (i.e. customer id and region)' and the measure are in different data sets, perhaps due to policy of splitting data by year or month, you can stack the data sets and use one Proc MEANS on the stack.  If you are stacking data sets it is good practice to incorporate the source data set name in the summary results if you need that temporality as a categorical variable.  The stacking can be a delivered through a view.

With the proper hardware 2m x 100 summarization will happen quickly.

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 15 replies
  • 1887 views
  • 5 likes
  • 7 in conversation