Created
March 14, 2014 09:13
-
-
Save Benjit87/9544499 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%let query=hello; | |
%let likequery=%sysfunc(cat(%str(%%),%str(&query),%str(%%))); | |
%put &query; *Will appear as hello in log; | |
%put &likequery; *Will appear as %hello% in log; | |
proc print data=test; | |
where x like "&likequery"; | |
run; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment