I am generating an report by using proc report and getting the output mentioned below:
| Date | Patient ID | AETERM |
| 20-Jul-20 | 100001 | Headache |
| 20-Jul-20 | 100001 | 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 ID | AETERM |
| 20-Jul-20 | 100001 | Headache |
| Hypertension |
Any suggestions.
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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.