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.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.