DATA Step, Macro, Functions and more

Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3)

Reply
Highlighted
Contributor
Posts: 74

Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3)

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

Super User
Super User
Posts: 6,122

Re: Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3)

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

Grand Advisor
Posts: 10,026

Re: Is there a way to run proc tabulate on base SAS but view the results in EG? (SAS 9.3)

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);

run;

   

 

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.

Ask a Question
Discussion stats
  • 2 replies
  • 39 views
  • 0 likes
  • 3 in conversation