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