<?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 Error while storing distinct values in macro variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-while-storing-distinct-values-in-macro-variable/m-p/72965#M7245</link>
    <description>I'm trying to store all distinct records in a macro variable.&lt;BR /&gt;
&lt;BR /&gt;
Proc sql noprint ;&lt;BR /&gt;
select distinct DRC_CASE_ID into : tempids separated by ',' from c;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Getting below error,how can i do it using sas&lt;BR /&gt;
&lt;BR /&gt;
15         Proc sql;&lt;BR /&gt;
16         select distinct DRC_CASE_ID into : tempids separated by ',' from c;&lt;BR /&gt;
ERROR: The length of the value of the macro variable TEMPIDS (79271) exceeds the maximum length &lt;BR /&gt;
       (65534). The value has been truncated to 65534 characters.&lt;BR /&gt;
17         quit;</description>
    <pubDate>Mon, 06 Jun 2011 18:25:17 GMT</pubDate>
    <dc:creator>brm</dc:creator>
    <dc:date>2011-06-06T18:25:17Z</dc:date>
    <item>
      <title>Error while storing distinct values in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-while-storing-distinct-values-in-macro-variable/m-p/72965#M7245</link>
      <description>I'm trying to store all distinct records in a macro variable.&lt;BR /&gt;
&lt;BR /&gt;
Proc sql noprint ;&lt;BR /&gt;
select distinct DRC_CASE_ID into : tempids separated by ',' from c;&lt;BR /&gt;
quit;&lt;BR /&gt;
&lt;BR /&gt;
Getting below error,how can i do it using sas&lt;BR /&gt;
&lt;BR /&gt;
15         Proc sql;&lt;BR /&gt;
16         select distinct DRC_CASE_ID into : tempids separated by ',' from c;&lt;BR /&gt;
ERROR: The length of the value of the macro variable TEMPIDS (79271) exceeds the maximum length &lt;BR /&gt;
       (65534). The value has been truncated to 65534 characters.&lt;BR /&gt;
17         quit;</description>
      <pubDate>Mon, 06 Jun 2011 18:25:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-while-storing-distinct-values-in-macro-variable/m-p/72965#M7245</guid>
      <dc:creator>brm</dc:creator>
      <dc:date>2011-06-06T18:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error while storing distinct values in macro variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-while-storing-distinct-values-in-macro-variable/m-p/72966#M7246</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
You hit the maximum storage capacity of macro variables in a 64bit environment.&lt;BR /&gt;
&lt;BR /&gt;
You will have to use another technique to achieve what you're after (i.e. a join or a hash look-up).&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Mon, 06 Jun 2011 20:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-while-storing-distinct-values-in-macro-variable/m-p/72966#M7246</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2011-06-06T20:36:47Z</dc:date>
    </item>
  </channel>
</rss>

