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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 460 views
  • 0 likes
  • 2 in conversation