<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Resolving a macro variable inside of proc format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21856#M3515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be nice to see the log to know more about your program.&lt;/P&gt;&lt;P&gt; You only have one double quote.&lt;/P&gt;&lt;P&gt;Try&amp;nbsp; other="%nrstr(&amp;amp;custname)";&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;other=%nrstr("&amp;amp;custname");&lt;/P&gt;&lt;P&gt;to force it to resolve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 19:24:44 GMT</pubDate>
    <dc:creator>garybald</dc:creator>
    <dc:date>2011-06-27T19:24:44Z</dc:date>
    <item>
      <title>Resolving a macro variable inside of proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21855#M3514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value &amp;amp;mkt&lt;/P&gt;&lt;P&gt;other="%nrstr(&amp;amp;custname);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not resolve to the intended name but remains as &amp;amp;custname.&amp;nbsp; Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 18:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21855#M3514</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2011-06-27T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Resolving a macro variable inside of proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21856#M3515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be nice to see the log to know more about your program.&lt;/P&gt;&lt;P&gt; You only have one double quote.&lt;/P&gt;&lt;P&gt;Try&amp;nbsp; other="%nrstr(&amp;amp;custname)";&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;other=%nrstr("&amp;amp;custname");&lt;/P&gt;&lt;P&gt;to force it to resolve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21856#M3515</guid>
      <dc:creator>garybald</dc:creator>
      <dc:date>2011-06-27T19:24:44Z</dc:date>
    </item>
    <item>
      <title>Resolving a macro variable inside of proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21857#M3516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; We'd need to see what the &amp;amp;mkt macro variable does resolve to to help out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're trying to create a format and have the data somewhere else consider using CNTLIN option instead of a macro variable.&amp;nbsp; CNTLIN option allows you to create a format from a dataset. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:31:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21857#M3516</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2011-06-27T19:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving a macro variable inside of proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21858#M3517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, typing error on my part.&amp;nbsp; I did have &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other="%nrstr(&amp;amp;custname)";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log show no errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;393 %macro fmt;&lt;/P&gt;&lt;P&gt;395 value $mkt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;396 other="%nrstr(&amp;amp;CustName)";&lt;/P&gt;&lt;P&gt;397 run;&lt;/P&gt;&lt;P&gt;398 %mend fmt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;399 %fmt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Format $MKT has been output.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;﻿&lt;/SPAN&gt;Other placements of the quotes did not help either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;394 proc format;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 20:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21858#M3517</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2011-06-27T20:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Resolving a macro variable inside of proc format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21859#M3518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks for the cntlin idea.&amp;nbsp; I hadn't thought of using it in this context.&amp;nbsp; I want with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data Customer; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fmtname='$mkt'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start='other'; &lt;/P&gt;&lt;P&gt;label="&amp;amp;custname"; &lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format cntlin=Customer; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 20:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Resolving-a-macro-variable-inside-of-proc-format/m-p/21859#M3518</guid>
      <dc:creator>Bill</dc:creator>
      <dc:date>2011-06-27T20:29:23Z</dc:date>
    </item>
  </channel>
</rss>

