SAS Programming

DATA Step, Macro, Functions and more
BookmarkSubscribeRSS Feed
HitmonTran
Pyrite | Level 9

Hi,

 

I'm sitting and scratching my head what is the best way to output my listing into the proc report format below:

 

I created 3 datasets but i need to print 1 report with one AE per Subject per page.

should i append the 3 dataset into 1 final dataset,resort it by subject & order #

or

should i use 3 dataset for proc report?

 

and how would i output 1 AE per subject per page?

 

Untitled.png

1 REPLY 1
ballardw
Super User

Typically for a cohesive and relatively easy to manage approach a single data set works better and to do a "report" per group, such as subject, sort the data by the group variable(s) and use BY group processing.

 

The devil may be in the details and trying to match some "other" layout.

 

What you show may be more amenable to the data step Report Writing Interface if you really need output broken up into 4 sections per subject

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 1 reply
  • 584 views
  • 0 likes
  • 2 in conversation