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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.