if drug=pimozide then ddi1=pimozide;
if drug=ziprasidone then ddi1=ziprasidone;
if drug=selegiline then ddi1=selegiline;
drugp="pimozide";
drugp="fluconazole";
drugp="ziprasidone";
ddicomb=ddi1||drugp;
I want if ddicomb=fluconazole||ziprasidone and ddicomb==ziprasidone||fluconazole as same ddicomb
how can I make it? Thank you so much!
you may want to use concatenation. This link may assist you in understanding how to use concatenate.
https://stats.idre.ucla.edu/sas/modules/concatenating-data-files-in-sas/
Happy trails
you may want to use concatenation. This link may assist you in understanding how to use concatenate.
https://stats.idre.ucla.edu/sas/modules/concatenating-data-files-in-sas/
Happy trails
You could Concatenate In Alphabetical Order.
1. Please change the title of your post to something more meaningful
2. Did you forget some quotes in your code?
3. == is not a valid operator in SAS
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.