BookmarkSubscribeRSS Feed
karandhawan0204
Calcite | Level 5

I am generating an report by using proc report and getting the output mentioned below:

Date Patient IDAETERM
20-Jul-20100001Headache
20-Jul-20100001

Hypertension 

 

Need the output like this, where if patient has 2 ae's then patient only reflects one time and same with the date. 

Date Patient IDAETERM
20-Jul-20100001Headache
Hypertension 

 

Any suggestions. 

1 REPLY 1
ballardw
Super User

First, show the code you are currently using. Then we can at least discuss variable names and current options.

 

The actual shown output from proc report is not going to happen. I suspect that if you look closely what is shown in the forum is not what you wanted and the message window reformatted your text.

 

I would guess that if you make the Define statement for your Date and patient variables Group that might get closer to what you expect.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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