BookmarkSubscribeRSS Feed
yahoo0806
Calcite | Level 5

Hi all,

I'm trying to write a SAS program to find the most recent dose date prior to the AE start date. 

 

In the exposure data, some all subjects are having the same number of exposure visits. Also in AE data, a subject can have multiple AE onset date.

 

So how should I write my program so that I can find the most recent dosing date prior to each AE onset date?

 

Many thanks!!

3 REPLIES 3
yahoo0806
Calcite | Level 5

Thank you I actually figured out how to do it: need to transpose the data first, then use array to pick up.

Kurt_Bremser
Super User

Please supply example data (in usable form, a data step with datalines), and what you expect to get out of it. Post your data step code by using the "little running man" icon.

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand in the Innovate Hub.

Watch Now →
Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 2364 views
  • 0 likes
  • 3 in conversation