<?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 Re: Macro length of the value of the macro variable, exceeds maximum length in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399373#M25673</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to do this using sql:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table Jan_Unallocated as&lt;BR /&gt;select EVENT_DT, DIVISION_NM, BRANCH_NM, PROGRAMME_NM_CT, CENTRE_TYPE, LOGON_ID, EMPLOYEE_NAME,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOTAL_CALLS, WORK_TIME&lt;BR /&gt;from Data.Employee_Telephony&lt;BR /&gt; Where Event_DT between '01Jan2017.'d and '31Jan2017.'d&lt;BR /&gt; and trim(Logon_ID) in (select trim(Employee_ID) from work.janunique);&lt;BR /&gt;quit;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2017 01:47:03 GMT</pubDate>
    <dc:creator>stat_sas</dc:creator>
    <dc:date>2017-09-28T01:47:03Z</dc:date>
    <item>
      <title>Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399370#M25671</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have seen posts on this however I can't seem to work my head around it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a 'list' of 11,152 logons (this number can change) which I use a the proc SQL to create.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
   
      select quote (trim(Employee_ID)) into :Name_List
	separated by " "
	from work.janunique;

   quit; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;and it returns the error;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: The length of the value of the macro variable NAME_LIST (65540) exceeds the maximum length (65534). The value has been &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; truncated to 65534 characters&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the list in the following where statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data work.Jan_Unallocated;
	Set Data.Employee_Telephony;
	Keep EVENT_DT	DIVISION_NM	BRANCH_NM	PROGRAMME_NM_CT	CENTRE_TYPE	LOGON_ID	EMPLOYEE_NAME	TOTAL_CALLS	WORK_TIME;
	Where Event_DT between  '01Jan2017.'d and '31Jan2017.'d
		and Logon_ID in &lt;STRONG&gt;(&amp;amp;name_list);&lt;/STRONG&gt;

Run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there a way I can get around this error or change the Data step to allow the list to be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dean&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 01:08:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399370#M25671</guid>
      <dc:creator>DME790</dc:creator>
      <dc:date>2017-09-28T01:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399372#M25672</link>
      <description>&lt;P&gt;Try this one...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  create table jan.unallocated as
select

 EVENT_DT,	DIVISION_NM,	BRANCH_NM,	PROGRAMME_NM_CT,	CENTRE_TYPE,	LOGON_ID,	EMPLOYEE_NAME,	TOTAL_CALLS,	WORK_TIME

from Data.Employee_Telephony
where

Event_DT between  '01Jan2017.'d and '31Jan2017.'d
		and Logon_ID in (    select strip(distinct Employee_ID) 
	from work.janunique) ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 01:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399372#M25672</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2017-09-28T01:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399373#M25673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to do this using sql:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;create table Jan_Unallocated as&lt;BR /&gt;select EVENT_DT, DIVISION_NM, BRANCH_NM, PROGRAMME_NM_CT, CENTRE_TYPE, LOGON_ID, EMPLOYEE_NAME,&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;TOTAL_CALLS, WORK_TIME&lt;BR /&gt;from Data.Employee_Telephony&lt;BR /&gt; Where Event_DT between '01Jan2017.'d and '31Jan2017.'d&lt;BR /&gt; and trim(Logon_ID) in (select trim(Employee_ID) from work.janunique);&lt;BR /&gt;quit;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 01:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399373#M25673</guid>
      <dc:creator>stat_sas</dc:creator>
      <dc:date>2017-09-28T01:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399374#M25674</link>
      <description>&lt;P&gt;The easiest way it to not move the data into text at all. &amp;nbsp;Just use a sub-query in SQL to compare the list of values.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
  create table Jan_Unallocated as
    select *
    from  Data.Employee_Telephony
(keep= EVENT_DT DIVISION_NM BRANCH_NM PROGRAMME_NM_CT
 CENTRE_TYPE LOGON_ID EMPLOYEE_NAME TOTAL_CALLS WORK_TIME)
    where Event_DT between '01Jan2017'd and '31Jan2017'd
      and Logon_ID in (select Employee_ID from work.janunique)
  ;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If the actually the two tables are really in different database systems so that using sub-query is not possible then you could use a data step to write the WHERE statement to a text file and use %INCLUDE to add it to your code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 02:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399374#M25674</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-09-28T02:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399512#M25680</link>
      <description>&lt;P&gt;There are System options available such as MVARSIZE to change the maximum allowable length of a single macro variable. However when a single varaible starts exceeding the 64K size I usually think that is a strong indicator that an alternate approach should be considered.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2017 14:57:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399512#M25680</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-28T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399516#M25682</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/75899"&gt;@DME790&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have seen posts on this however I can't seem to work my head around it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a 'list' of 11,152 logons (this number can change) which I use a the proc SQL to create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql; 
   
      select quote (trim(Employee_ID)) into :Name_List
	separated by " "
	from work.janunique;

   quit; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and it returns the error;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;ERROR: The length of the value of the macro variable NAME_LIST (65540) exceeds the maximum length (65534). The value has been &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#ff0000"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; truncated to 65534 characters&lt;/FONT&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use the list in the following where statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data work.Jan_Unallocated;
	Set Data.Employee_Telephony;
	Keep EVENT_DT	DIVISION_NM	BRANCH_NM	PROGRAMME_NM_CT	CENTRE_TYPE	LOGON_ID	EMPLOYEE_NAME	TOTAL_CALLS	WORK_TIME;
	Where Event_DT between  '01Jan2017.'d and '31Jan2017.'d
		and Logon_ID in &lt;STRONG&gt;(&amp;amp;name_list);&lt;/STRONG&gt;

Run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Is there a way I can get around this error or change the Data step to allow the list to be used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dean&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In your PROC SQL code, you need to make one minor change&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;select DISTINCT quote(trim(Employee_ID)) into :Name_List
	separated by " "
	from work.janunique;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Sep 2017 15:07:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399516#M25682</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-09-28T15:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399673#M25693</link>
      <description>&lt;P&gt;Your where clause&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;	&lt;SPAN class="token statement"&gt;Where&lt;/SPAN&gt; Event_DT between  &lt;SPAN class="token datetime number"&gt;'01Jan2017.'d&lt;/SPAN&gt; and &lt;SPAN class="token datetime number"&gt;'31Jan2017.'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;should be without a dot in the sas date values like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;	&lt;SPAN class="token statement"&gt;Where&lt;/SPAN&gt; Event_DT between  &lt;SPAN class="token datetime number"&gt;'01Jan2017'd&lt;/SPAN&gt; and &lt;SPAN class="token datetime number"&gt;'31Jan2017'd&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2017 01:35:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/399673#M25693</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2017-09-29T01:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: Macro length of the value of the macro variable, exceeds maximum length</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/477343#M30999</link>
      <description>&lt;P&gt;Hi All ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also getting "&lt;!--    THIS MUST BE THE FIRST TAG IN HEAD ELEMENT    --&gt;&amp;nbsp;&lt;!--    [if gte IE 9]&amp;amp;amp;gt;
        &amp;amp;amp;lt;link media=&amp;amp;amp;quot;screen&amp;amp;amp;quot; rel=&amp;amp;amp;quot;stylesheet&amp;amp;amp;quot; href=&amp;amp;amp;quot;resources/js/dojo/dijit/themes/corporate/css/webdms_ie.css&amp;amp;amp;quot; /&amp;amp;amp;gt;
&amp;amp;amp;lt;![endif]   --&gt;&lt;!--    [if lte IE 9]&amp;amp;amp;gt;
    &amp;amp;amp;amp;lt;script type=&amp;amp;amp;quot;text/javascript&amp;amp;amp;quot;&amp;amp;amp;gt;
    var splashUpdateInterval;
	(function(){
		var count=0;
		splashUpdateInterval = setInterval(function(){
	    count++;
	    var elm=document.getElementById('sas-hc-splash-headerText')
	    if(elm){
	        elm.innerHTML = &amp;amp;amp;quot;Initializing&amp;amp;amp;quot; + new Array(count % 5).join('.');
	    }else{
	        window.clearInterval(splashUpdateInterval);
	    }
	}, 300);
	}())
    &amp;amp;amp;amp;lt;/script&amp;amp;amp;amp;gt;
&amp;amp;amp;lt;![endif]   --&gt;&lt;!--    This is for the process flow control (used in query)    --&gt;&lt;!--    fav and touch icons    --&gt;&lt;!--        &amp;amp;amp;lt;link rel=&amp;amp;amp;quot;shortcut icon&amp;amp;amp;quot; href=&amp;amp;amp;quot;assets/ico/favicon.ico&amp;amp;amp;quot;&amp;amp;amp;gt;
    &amp;amp;amp;lt;link rel=&amp;amp;amp;quot;apple-touch-icon&amp;amp;amp;quot; href=&amp;amp;amp;quot;assets/ico/apple-touch-icon.png&amp;amp;amp;quot;&amp;amp;amp;gt;
    &amp;amp;amp;lt;link rel=&amp;amp;amp;quot;apple-touch-icon&amp;amp;amp;quot; sizes=&amp;amp;amp;quot;72x72&amp;amp;amp;quot; href=&amp;amp;amp;quot;assets/ico/apple-touch-icon-72x72.png&amp;amp;amp;quot;&amp;amp;amp;gt;
    &amp;amp;amp;lt;link rel=&amp;amp;amp;quot;apple-touch-icon&amp;amp;amp;quot; sizes=&amp;amp;amp;quot;114x114&amp;amp;amp;quot; href=&amp;amp;amp;quot;assets/ico/apple-touch-icon-114x114.png&amp;amp;amp;quot;&amp;amp;amp;gt;

    --&gt;&lt;!--    Standard iPhone    --&gt;&lt;!--    Retina iPhone    --&gt;&lt;!--    Standard iPad    --&gt;&lt;!--    Retina iPad    --&gt;&lt;!--    data-dojo-type = &amp;amp;amp;quot;&amp;amp;amp;quot;    --&gt;&lt;/P&gt;&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter dijitContentPaneSingleChild"&gt;&lt;DIV class="dijitBorderContainer dijitContainer row-fluid dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitAlignCenter dijitContentPaneSingleChild dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane"&gt;&lt;DIV class="tabs dijitBorderContainer dijitContainer dojoDndTarget dijitLayoutContainer sasStudioTabsParentContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasStudioTabsTabContainer sasStudioTabsTabContainerVertical sasStudioTabsTop dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer sasStudioTabsTabContainerChild dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dojoDndTarget dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer dojoDndContainerOver"&gt;&lt;DIV class="dijitTabContainer dijitTabContainerTop dijitContainer dijitLayoutContainer tabStrip-disabled sasSuiteTabs dijitBorderContainer-child dijitBorderContainer-dijitTabContainerTop dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV class="dijitTabPaneWrapper dijitTabContainerTop-container dijitAlignCenter"&gt;&lt;DIV class="dijitTabContainerTopChildWrapper dijitVisible"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitTabPane dijitTabContainerTop-child dijitTabContainerTop-dijitBorderContainer dijitLayoutContainer"&gt;&lt;DIV class="dijitBorderContainer dijitContainer dijitBorderContainer-child dijitBorderContainer-dijitBorderContainer dijitBorderContainerPane dijitAlignCenter dijitLayoutContainer"&gt;&lt;DIV class="dijitContentPane dijitBorderContainer-child dijitBorderContainer-dijitContentPane dijitBorderContainerPane dijitAlignCenter"&gt;&lt;DIV&gt;&lt;DIV class="sasError focus-line"&gt;ERROR: The length of the value of the macro variable UNIT_VAR_LIST (65540) exceeds the maximum length (65534). The value has been&lt;/DIV&gt;&lt;DIV class="sasError"&gt;truncated to 65534 characters."&amp;nbsp; but when I searched I&amp;nbsp;read about option "mexecsize" which is available to solve this issue but I do not know how to use "mexecsize" option . Can anyone help me on this this issue ?&lt;/DIV&gt;&lt;DIV class="sasError"&gt;I Have written this code to format all SAS varibles (FORMAT &amp;amp;UNIT_VAR_LIST 9. ;&lt;BR /&gt;FORMAT &amp;amp;DLLR_VAR_LIST 9.2;)&amp;nbsp; at once.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname lib '/my/sas/var_size_issue';


*proc options mexecsize=MAX;
*run; 
*MEXECSIZE = MAX;

PROC SQL NOPRINT;

CREATE TABLE lib.VAR_NAMES AS
  SELECT NAME FROM DICTIONARY.COLUMNS
        WHERE libname ='LIB' AND memname ='MGR';
        

SELECT COMPRESS(NAME) INTO :UNIT_VAR_LIST SEPARATED BY " " FROM lib.VAR_NAMES WHERE UPCASE(name) LIKE '%unit%' OR
UPCASE(name) LIKE UPCASE('%UNIT%');


SELECT COMPRESS(NAME) INTO :DLLR_VAR_LIST SEPARATED BY " " FROM lib.VAR_NAMES WHERE UPCASE(name) LIKE '%dllr%' OR
UPCASE(name) LIKE '%DLLR%';
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Jul 2018 07:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macro-length-of-the-value-of-the-macro-variable-exceeds-maximum/m-p/477343#M30999</guid>
      <dc:creator>sam101</dc:creator>
      <dc:date>2018-07-12T07:04:45Z</dc:date>
    </item>
  </channel>
</rss>

