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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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