<?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: Length macro variables in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161546#M299793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right...&amp;nbsp; it was a semi column issue.&amp;nbsp; Thanks everyone!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 21:21:44 GMT</pubDate>
    <dc:creator>MyleneC</dc:creator>
    <dc:date>2013-12-19T21:21:44Z</dc:date>
    <item>
      <title>Length macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161543#M299790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #17365d;"&gt;How long is the length of the value that can be put in a macro variable?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #17365d; font-family: Calibri, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #17365d;"&gt;Here is my code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;/** Get specific title from the note description dataset **/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc sql noprint;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select desc_e, desc_f into :T1_EI_TITLE_E, :T1_EI_TITLE_F &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from notedesc.no&amp;amp;curr_nt&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where code = &lt;SPAN style="color: #800080;"&gt;"T1_EI_TITLE"&lt;/SPAN&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Courier New, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; quit;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #17365d; font-family: Calibri, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #17365d;"&gt;It crashes because the length of both "desc_e" and "desc_f" is too long.&amp;nbsp; Is there a way to make this work?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #17365d;"&gt;Thanks a lot in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161543#M299790</guid>
      <dc:creator>MyleneC</dc:creator>
      <dc:date>2013-12-02T20:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Length macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161544#M299791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most common setting for maximum length of a macro variable is 65,534 characters.&amp;nbsp; Do you really expect the values you are reading to be anywhere near that long?&amp;nbsp; More likely there is some other cause of the crash.&amp;nbsp; Have you considered reading the data into a SAS data set rather than into macro variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2013 20:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161544#M299791</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-12-02T20:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Length macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161545#M299792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is a "crash" do you mean errors in the log or SAS quits? If there are errors then post them to help diagnose the problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system option MVARSIZE sets the maximum length of macro variables and may default to 4096.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;proc options group=macro; run;&lt;/P&gt;&lt;P&gt;to examine macro related settings.&lt;/P&gt;&lt;P&gt;If the lengths of your data set variable do exceed the MVARSIZE then increase the value:&lt;/P&gt;&lt;P&gt;options mvarsize=9000; or sum such to match.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 16:22:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161545#M299792</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-12-04T16:22:24Z</dc:date>
    </item>
    <item>
      <title>Re: Length macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161546#M299793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You were right...&amp;nbsp; it was a semi column issue.&amp;nbsp; Thanks everyone!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 21:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Length-macro-variables/m-p/161546#M299793</guid>
      <dc:creator>MyleneC</dc:creator>
      <dc:date>2013-12-19T21:21:44Z</dc:date>
    </item>
  </channel>
</rss>

