<?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: How to increase the length of value from dictionary.macros in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436993#M108762</link>
    <description>&lt;P&gt;Yes. Thanks. But instead of macro I does the concatenation in the data step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified the script like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name,value &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dictionary.macros&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; scope &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;eq&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'GLOBAL'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sort&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=vars;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; want(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=value &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;rename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(concatenate=value));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; concatenate $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;until&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (last.name);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;concatenate = strip(concatenate)||strip(value);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 05:20:16 GMT</pubDate>
    <dc:creator>chithra</dc:creator>
    <dc:date>2018-02-14T05:20:16Z</dc:date>
    <item>
      <title>How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436670#M108634</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a macro generated automatically from the sas environment(measures).&lt;/P&gt;&lt;P&gt;I need to get the macro through sas dictionary.macros.&lt;/P&gt;&lt;P&gt;As the length of the macro is too large, the value column cannot accommodate the contents. I hope the default length is 200(showing in the offset column). I need the&amp;nbsp;4 rows in to one.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="macros.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18491i5BF68563D349A462/image-size/large?v=v2&amp;amp;px=999" role="button" title="macros.PNG" alt="macros.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The change in the length of value column is not possible(see the program).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Program:&lt;/P&gt;&lt;P&gt;/*below is the amcro which i declared manually(automatically created)*/&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%let&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; measures=BUILDINGS_IOTRM CONTENTS_IOTRM TIME_ELEMENT_IOTRM BUILDINGS_IOTRM_AVG CONTENTS_IOTRM_AVG TIME_ELEMENT_IOTRM_AVG PTRM_CNT PTRM PTRM_AVG BUILDINGS_PTRM_CNT BUILDINGS_PTRM BUILDINGS_PTRM_AVG CONTENTS_PTRM_CNT CONTENTS_PTRM CONTENTS_PTRM_AVG STOCK_PTRM_CNT STOCK_PTRM STOCK_PTRM_AVG APPURT_STRUCT_PTRM_CNT APPURT_STRUCT_PTRM APPURT_STRUCT_PTRM_AVG COMBINED_PROP_PTRM_CNT COMBINED_PROP_PTRM COMBINED_PROP_PTRM_AVG TIME_ELEMENT_PTRM_CNT TIME_ELEMENT_PTRM TIME_ELEMENT_PTRM_AVG IOTRM_CNT IOTRM IOTRM_AVG BUILDINGS_IOTRM_CNT CONTENTS_IOTRM_CNT STOCK_IOTRM_CNT STOCK_IOTRM STOCK_IOTRM_AVG APPURT_STRUCT_IOTRM_CNT APPURT_STRUCT_IOTRM APPURT_STRUCT_IOTRM_AVG COMBINED_PROP_IOTRM_CNT COMBINED_PROP_IOTRM COMBINED_PROP_IOTRM_AVG TIME_ELEMENT_IOTRM_CNT;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name,offset,value &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; value1 length &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10000&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dictionary.macros&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; scope &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;eq&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'GLOBAL'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* create table macro_variables as*/&lt;/P&gt;&lt;P&gt;/* select catx(' ','%let ',strip(name),'=',strip(value),';') as statement length 700,*/&lt;/P&gt;&lt;P&gt;/* catx(' ','%global', strip(name)) as global_statement length 100*/&lt;/P&gt;&lt;P&gt;/* from vars;*/&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chithra&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:52:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436670#M108634</guid>
      <dc:creator>chithra</dc:creator>
      <dc:date>2018-02-13T12:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436683#M108636</link>
      <description>&lt;P&gt;Why?&amp;nbsp; Macro isn't the place for data.&amp;nbsp; Variable lengths can only go up to 2000, and long macro strings get split up into shorter blocks.&amp;nbsp; Put data in datasets which are unlimted in size.&amp;nbsp; There are numerous methods for working with lists of variables available in Base SAS, such as:&lt;/P&gt;
&lt;P&gt;_all_&lt;/P&gt;
&lt;P&gt;_numeric_&lt;/P&gt;
&lt;P&gt;_character_&lt;/P&gt;
&lt;P&gt;varprefix:&lt;/P&gt;
&lt;P&gt;firstvar--lastvar&lt;/P&gt;
&lt;P&gt;etc.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:10:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436683#M108636</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-02-13T13:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436693#M108639</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But here the case is something different right?&lt;/P&gt;&lt;P&gt;The macro which I declared manually in the example was just for reference. This macro (measures) is something which is get via sas webservice which I declared manually here. Through dictionary.macros I can get these values of macros.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436693#M108639</guid>
      <dc:creator>chithra</dc:creator>
      <dc:date>2018-02-13T13:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436716#M108647</link>
      <description>&lt;P&gt;I still think there is a why (you need to get it from dictionary.macros).&lt;/P&gt;
&lt;P&gt;What is the application (more than it is a web service involved)?&lt;/P&gt;
&lt;P&gt;You could however get the macro variable name from the dictionary, but then fetch the actual value from the macro variable itself (which could be up to 32k in size).&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:36:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436716#M108647</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-02-13T14:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436754#M108664</link>
      <description>&lt;P&gt;You can rebuild the macro variable by copying from dictionary.macros:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;select value into : measures separated by ''&lt;/P&gt;
&lt;P&gt;from dictionary.macros where &lt;BR /&gt;name='MEASURES' and scope='GLOBAL';&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's important that the "separated by" is null ... two quotes without a blank between the quotes.&amp;nbsp; That's one of the few places in the software where it makes a difference.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436754#M108664</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-02-13T15:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436993#M108762</link>
      <description>&lt;P&gt;Yes. Thanks. But instead of macro I does the concatenation in the data step&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified the script like below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;create&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;table&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;as&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name,value &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; dictionary.macros&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;where&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; scope &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;eq&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'GLOBAL'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;sort&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=vars;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; want(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=value &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;rename&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=(concatenate=value));&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; concatenate $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;until&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (last.name);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; vars;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; name;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;concatenate = strip(concatenate)||strip(value);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 05:20:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436993#M108762</guid>
      <dc:creator>chithra</dc:creator>
      <dc:date>2018-02-14T05:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436994#M108763</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Instead of macro, I used this in the data step itself.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 05:20:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436994#M108763</guid>
      <dc:creator>chithra</dc:creator>
      <dc:date>2018-02-14T05:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436995#M108764</link>
      <description>&lt;P&gt;Use the SYMGET() function to retrieve the value of a macro variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vars ;
  length name $32 value $32767 ;
  set sashelp.vmacro ;
  where scope='GLOBAL';
  by name notsorted ;
  if first.name;
  value=symget(name);
  keep name value;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But note that macro variables can be up to 64K bytes and datasetp variables can only be 32K bytes.&amp;nbsp; You could&amp;nbsp;use RESOLVE() to get the macro variable's length and so be able to create two dataset variables so that you could store macro variable values longer than 32K.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data vars ;
  length name $32 length 8 value1 value2 $32767 ;
  set sashelp.vmacro ;
  where scope='GLOBAL' ;
  by name notsorted;
  if first.name;
  length=input(resolve(cats('%length(%superq(',name,'))')),32.);
  value1=symget(name);
  if length &amp;gt; 32767 then value2 = resolve(cats('%qsubstr(%superq(',name,'),32768)'));
  keep name length value1 value2;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Example result:&lt;/P&gt;
&lt;PRE&gt;365   proc print;
366    where name='TESTVAR';
367   run;

WARNING: Data too long for column "value1"; truncated to 103 characters to fit.
WARNING: Data too long for column "value2"; truncated to 103 characters to fit.
NOTE: There were 1 observations read from the data set WORK.VARS.
      WHERE name='TESTVAR';

Obs  name      length

 58 TESTVAR     35177

Obs                                                 value1

 58 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut bibendum ullamcorper consequat. Nulla ut co

Obs                                                 value2

 58 endum dignissim.  Morbi tincidunt at quam eu placerat. Ut felis turpis, suscipit ac metus id, pellentes
&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 487px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/18520i2A3518C7019EF603/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also note that if &lt;STRONG&gt;you are running inside a macro,&amp;nbsp;&lt;/STRONG&gt;so that one or more local symbol tables are currently active, then SYMGET() and RESOLVE() might not be able to fetch the value from the global symbol table.&amp;nbsp; If you need to retrieve values for macro variables that are hidden by more local macro variables then use this utility macro:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/sasutils/macros/blob/master/symget.sas" target="_blank"&gt;https://github.com/sasutils/macros/blob/master/symget.sas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 06:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/436995#M108764</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-02-14T06:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase the length of value from dictionary.macros</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/437003#M108769</link>
      <description>&lt;P&gt;Many Thanks for your explanation.&lt;/P&gt;&lt;P&gt;I rewrite as per your writings.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 07:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-increase-the-length-of-value-from-dictionary-macros/m-p/437003#M108769</guid>
      <dc:creator>chithra</dc:creator>
      <dc:date>2018-02-14T07:05:57Z</dc:date>
    </item>
  </channel>
</rss>

