Skip to content

Instantly share code, notes, and snippets.

@Benjit87
Created March 14, 2014 09:13
Show Gist options
  • Save Benjit87/9544499 to your computer and use it in GitHub Desktop.
Save Benjit87/9544499 to your computer and use it in GitHub Desktop.
%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