<?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 How do I pass two long strings to a macro? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53793#M11355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would help if you posted an example of code that produces the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Feb 2012 23:02:45 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-02-14T23:02:45Z</dc:date>
    <item>
      <title>How do I pass two long strings to a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53792#M11354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to pass two long strings into a sas macro, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%some_macro(first=this is quite a long string, two=and so is this);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can define macros where I pass an argument like the first, but if I have two arguments like this it seems SAS gets confused, and I get errors about strings being 262 characters or longer. I suspect I should be using some sort of quoting or something, but I'm not sure exactly what to use. Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 23:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53792#M11354</guid>
      <dc:creator>MarkGreenaway</dc:creator>
      <dc:date>2012-02-14T23:00:04Z</dc:date>
    </item>
    <item>
      <title>How do I pass two long strings to a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53793#M11355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would help if you posted an example of code that produces the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 23:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53793#M11355</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-14T23:02:45Z</dc:date>
    </item>
    <item>
      <title>How do I pass two long strings to a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53794#M11356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a limit on the length of a macro variable.&amp;nbsp; Should be around 32,000.&lt;/P&gt;&lt;P&gt;The error message you report can be suppressed by using the option NOQUOTELENMAX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002233891.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002233891.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You would see it if your macro did something like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data out;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; var1="&amp;amp;first";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2012 23:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53794#M11356</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-02-14T23:19:55Z</dc:date>
    </item>
    <item>
      <title>How do I pass two long strings to a macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53795#M11357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000080; font-size: 10pt; font-family: Consolas;"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas;"&gt;two(first=,second=);&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;title &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Consolas;"&gt;&lt;STRONG&gt;"&amp;amp;first &amp;amp;second"&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc freq data=hsurvey2.hsa05_adult_public;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table year;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-family: Consolas; font-size: 10pt;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: Consolas;"&gt;two;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%&lt;EM&gt;two&lt;/EM&gt;(first=this is a long string, second=and so is this);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It turns out that this works fine. The problem in my code is something else entirely. I'll try to track that down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2012 00:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-pass-two-long-strings-to-a-macro/m-p/53795#M11357</guid>
      <dc:creator>MarkGreenaway</dc:creator>
      <dc:date>2012-02-15T00:03:04Z</dc:date>
    </item>
  </channel>
</rss>

