DATA Step, Macro, Functions and more

What would be the procedure similar to making a excel pivot table?

Accepted Solution Solved
Reply
Contributor
Posts: 43
Accepted Solution

What would be the procedure similar to making a excel pivot table?

What would be the procedure similar to making a excel pivot table?

I need 2 examples onesSummarizing and other counting


Accepted Solutions
Solution
‎03-06-2017 04:15 PM
Super User
Posts: 19,861

Re: What would be the procedure similar to making a excel pivot table?

Posted in reply to Angel_Saenz

It depends. There are many different ways starting from:

 

  • Proc Means, Summary, Univariate
  • Proc Report
  • Proc Tabulate
  • Proc Freq
  • SurveyFreq or SurveyMeans 

All of these Procs have examples in the documentation. 

 

I would probably start with Proc Tabulate as it's pretty versatile. 

Here's a paper with examples

http://www.lexjansen.com/scsug/2007/how/HOW-Winn.pdf

View solution in original post


All Replies
Solution
‎03-06-2017 04:15 PM
Super User
Posts: 19,861

Re: What would be the procedure similar to making a excel pivot table?

Posted in reply to Angel_Saenz

It depends. There are many different ways starting from:

 

  • Proc Means, Summary, Univariate
  • Proc Report
  • Proc Tabulate
  • Proc Freq
  • SurveyFreq or SurveyMeans 

All of these Procs have examples in the documentation. 

 

I would probably start with Proc Tabulate as it's pretty versatile. 

Here's a paper with examples

http://www.lexjansen.com/scsug/2007/how/HOW-Winn.pdf

PROC Star
Posts: 7,491

Re: What would be the procedure similar to making a excel pivot table?

Posted in reply to Angel_Saenz

On the other hand, if you're on a system that can run VB Script (e.g., any version of Windows) you can use SAS to create an Excel pivot table for you. For some sample code, take a look at: https://listserv.uga.edu/cgi-bin/wa?A2=ind0506a&L=SAS-L&O=D&F=P&X=FB41D225061C8C7F9B&P=62191

 

Art, CEO, AnalystFinder.com

 

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 147 views
  • 2 likes
  • 3 in conversation