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