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
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.