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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 480 views
  • 0 likes
  • 2 in conversation