BookmarkSubscribeRSS Feed
Shmuel
Garnet | Level 18

@_maldini_ - we are all going around trying to guess what output you are looking for.

It is obvious that you want to flag drugs and/or groups of drugs, analyzing the text in rxsublist variable.

 

Can you design and give some examples of output desired per input string ?

 

For example, what output would you like for:

 Line                  rxsublist  

11            Effexor , Amytriptyline, Metformin, Valuim, Flomax

15            Depression Pills

36            i have used cannabis as a substitute for mild pain medicine like vicodin. 

49            pain relievers

73            Painkillers like Paracetamol for headaches and such

 

Do you have a list of drugs and their categories in a file that can use as second input,

to create a format like @Patrick offered ?

 

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 15 replies
  • 2046 views
  • 7 likes
  • 5 in conversation