Is there a way to pass a macro variable into SAP HANA?
Normally you use double quotes around a marco in proc sql to resolve but double quotes define a column name in SAP HANA therefore it will not resolve correctly
this is snip of the code. if i put double quotes around it than it read as a column name.
where
E."0UCOPERAND"="&OP_TYPE."
i have tried it without double quotes and it stll doesn't work.
Any ideas
What does "doesn't work" mean? If SAP HANA insists on only accepting single quotes then try this:
E."0UCOPERAND"=%str(%')&OP_TYPE.%str(%')
What does "doesn't work" mean? If SAP HANA insists on only accepting single quotes then try this:
E."0UCOPERAND"=%str(%')&OP_TYPE.%str(%')
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.