BookmarkSubscribeRSS Feed
Quartz | Level 8

Can you save the results output to a libname or something?

Super User Tom
Super User

Can you explain what you mean? Anything run via EG is actually run using Base SAS.

Super User

You can send the output to a data set using the OUT= option on the Proc Statement.

Proc tabulate data=sashelp.class out=mylib.tabulateoutput;

   class sex age;

   var height weight;

   table  sex*age all,

            (height weight)*(mean max min);




HOWEVER the data does not look like what you may expect. The output data set has a number of variables that just tell where the resulting statitistic values appear because of the option in tabulate that allow nesting row and column values, creating multiple tables from a single procedure call and the "All" row/column options.


You might try dumping a small proc tabulate output to a set and then examime it closely to see if it will do what you want.


If you have never figured out the _type_ variable in proc summary or proc means output this may not be the approach for you.


I do use Proc tabulate to create data sets that I manipulate a bit to display latter with more control than a single Tabulate call allows but it is not a trivial operation.


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!

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.

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
  • 2 replies
  • 3 in conversation