Hello,
This will probably be easy for some one, but for the life of me I can't figure it out.
So, there is a macro variable like this:
%let ICD_CODE = V85.5
But I need to pass this macro variable as 'V855' in query because this one
particular query uses that form. All of the other queries uses the regular
macro variable value, V85.5.
So, how can I mask the decimal in the macro variable to pass to the query ?
Use %SYSFUNC() to call the COMPRESS() function.
%sysfunc(compress(&icd_code,.))
Use %SYSFUNC() to call the COMPRESS() function.
%sysfunc(compress(&icd_code,.))
Thank You, Tom ! that was perfect. I knew someone would have the answer.
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.