As the first step in the decommissioning of sasCommunity.org the site has been converted to read-only mode.


Here are some tips for How to share your SAS knowledge with your professional network.


Difference between revisions of "Tip of the Day:June 26"

From sasCommunity
Jump to: navigation, search
m (Scheduled Searching User Group Papers)
(Scheduled Resolving a macro variable within single quotes)
 
Line 5: Line 5:
 
sasCommunity Tip of the Day
 
sasCommunity Tip of the Day
 
</h1><div style="padding:10px;">
 
</h1><div style="padding:10px;">
{{Tips:Searching User Group Papers}}
+
{{Tips:Resolving a macro variable within single quotes}}
 
<div style="width:100%"><hr></div>
 
<div style="width:100%"><hr></div>
Feel free to [[Tips Talk:Searching User Group Papers|comment]] on this tip.
+
Feel free to [[Tips Talk:Resolving a macro variable within single quotes|comment]] on this tip.
 
</div>
 
</div>
 
</td></tr>
 
</td></tr>

Latest revision as of 20:58, 17 June 2014

sasCommunity Tip of the Day

It is well known that macro variables do not resolve within single quotes - what if you have a need to include a macro variable WITHIN single quotes? By using the escape character %str(%'), you can accomplish this. For example, let's say you have a macro variable named YADAYADA - then the syntax would be: %str(%')&YADAYADA.%str(%'). This can be especially helpful for database passwords, among other things.

Submitted By Stfogleman



Feel free to comment on this tip.


Prior tip - Next tip - Random Tip

Submit a Tip