DATA Step, Macro, Functions and more

dynamic sas reports

Occasional Contributor
Posts: 9

dynamic sas reports

I want to create a dynamic sas report that prints out multiple metics by 1, 2 or 3 segmentation variables. Is there a way to write one proc print and then make seperate calls to print out a report for 1, 2 or 3 seg vars?


I could just concatinate all of the segmentation variables.  Is there another option?

Trusted Advisor
Posts: 1,270

Re: dynamic sas reports

Sample data along with desired output please?

Occasional Contributor
Posts: 9

Re: dynamic sas reports

report 1


x  var1-var10


report 2

x y var1-var10


report 3


x y z var1-var10

Super User
Posts: 23,749

Re: dynamic sas reports

Please post more details, as much as possible. Fake data and demo output are great.  


Otherwise, yes, SAS can generate dynamic reports 10 different ways. Search

Ask a Question
Discussion stats
  • 3 replies
  • 3 in conversation