<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: SAS Macros: Letting SAS Do the Typing</title>
	<atom:link href="http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/feed/" rel="self" type="application/rss+xml" />
	<link>http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/</link>
	<description>I'm a biologist not a...</description>
	<pubDate>Sat, 30 Aug 2008 03:09:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: ScottS-M</title>
		<link>http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/#comment-48881</link>
		<dc:creator>ScottS-M</dc:creator>
		<pubDate>Thu, 22 May 2008 14:36:40 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/#comment-48881</guid>
		<description>The &lt;code&gt;&#38;&#38;&lt;/code&gt; is sort of a funny SAS way of doing arrays or pointers. When SAS runs into a &lt;code&gt;&#38;&#38;&lt;/code&gt; it turns it into a single &lt;code&gt;&#38;&lt;/code&gt; and remembers it needs to look through the programs for &lt;code&gt;&#38;&lt;/code&gt;'s a second time. 

It's probably easier to show by example. Let's say you have a bunch of names stored in the macro variables &lt;code&gt;&#38;name1&lt;/code&gt;, &lt;code&gt;&#38;name2&lt;/code&gt;... and you want to get the name from the second one, so you're looking for &lt;code&gt;&#38;name2&lt;/code&gt;. To get it, you set &lt;code&gt;%LET i = 2;&lt;/code&gt; (in reality you'd probably be looping through or using an if statement but same idea). So you might try &lt;code&gt;&#38;name&#38;i&lt;/code&gt; but if you do that SAS will try to fill in both &lt;code&gt;&#38;name&lt;/code&gt; and &lt;code&gt;&#38;i&lt;/code&gt; at the same time and not give you want you want. However if you do &lt;code&gt;&#38;&#38;name&#38;i&lt;/code&gt;, SAS changes &lt;code&gt;&#38;&#38;&lt;/code&gt; to &lt;code&gt;&#38;&lt;/code&gt; and &lt;code&gt;&#38;i&lt;/code&gt; to &lt;code&gt;2&lt;/code&gt;, resulting in &lt;code&gt;&#38;name2&lt;/code&gt;. Then SAS runs through the code again, sees &lt;code&gt;&#38;name2&lt;/code&gt; and fills it in with the desired second name.

Let me know, if that wasn't clear it's sort of a complex odd thing.</description>
		<content:encoded><![CDATA[<p>The <code>&amp;&amp;</code> is sort of a funny SAS way of doing arrays or pointers. When SAS runs into a <code>&amp;&amp;</code> it turns it into a single <code>&amp;</code> and remembers it needs to look through the programs for <code>&amp;</code>&#8217;s a second time. </p>
<p>It&#8217;s probably easier to show by example. Let&#8217;s say you have a bunch of names stored in the macro variables <code>&amp;name1</code>, <code>&amp;name2</code>&#8230; and you want to get the name from the second one, so you&#8217;re looking for <code>&amp;name2</code>. To get it, you set <code>%LET i = 2;</code> (in reality you&#8217;d probably be looping through or using an if statement but same idea). So you might try <code>&amp;name&amp;i</code> but if you do that SAS will try to fill in both <code>&amp;name</code> and <code>&amp;i</code> at the same time and not give you want you want. However if you do <code>&amp;&amp;name&amp;i</code>, SAS changes <code>&amp;&amp;</code> to <code>&amp;</code> and <code>&amp;i</code> to <code>2</code>, resulting in <code>&amp;name2</code>. Then SAS runs through the code again, sees <code>&amp;name2</code> and fills it in with the desired second name.</p>
<p>Let me know, if that wasn&#8217;t clear it&#8217;s sort of a complex odd thing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kishore kumar</title>
		<link>http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/#comment-48865</link>
		<dc:creator>kishore kumar</dc:creator>
		<pubDate>Thu, 22 May 2008 12:02:49 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/#comment-48865</guid>
		<description>what is the '&#38;&#38;' use in sas macros</description>
		<content:encoded><![CDATA[<p>what is the &#8216;&amp;&amp;&#8217; use in sas macros</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Getting Help with SAS :: Dammit Jim!</title>
		<link>http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/#comment-16631</link>
		<dc:creator>Getting Help with SAS :: Dammit Jim!</dc:creator>
		<pubDate>Thu, 15 Nov 2007 06:01:52 +0000</pubDate>
		<guid isPermaLink="false">http://scott.sherrillmix.com/blog/programmer/sas-macros-letting-sas-do-the-typing/#comment-16631</guid>
		<description>[...] you can also read my poor attempts at explaining SAS macro variables and SAS macros. Also, if you have any specific questions you can try asking in the comments here and if it&#8217;s [...]</description>
		<content:encoded><![CDATA[<p>[...] you can also read my poor attempts at explaining SAS macro variables and SAS macros. Also, if you have any specific questions you can try asking in the comments here and if it&#8217;s [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.149 seconds -->
