Condition 1: If AEOUT = Fatal, then output all AE's where
AESTDAT is on or after that Fatal AEENDAT
Could be solved by using proc sql with having-clause or by setting and retaining a flag if the condition is met and using output-statement conditionally, but that would require that the no obs has to be written to the result, that is before the condition is met.
If you need further help, please post the data you have in usable form (data step with datalines) and show the expected output.
Could be solved by using proc sql with having-clause or by setting and retaining a flag if the condition is met and using output-statement conditionally, but that would require that the no obs has to be written to the result, that is before the condition is met.
If you need further help, please post the data you have in usable form (data step with datalines) and show the expected output.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.