<?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 String Variable Length from Assignment Statement-- 200? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/String-Variable-Length-from-Assignment-Statement-200/m-p/681135#M205991</link>
    <description>&lt;P&gt;I am confused by the variable length assigned to&amp;nbsp;&lt;EM&gt;newvar&lt;/EM&gt; in the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data carstemp;&lt;BR /&gt;Set sashelp.cars;&lt;BR /&gt;newvar=catx(make,model,'');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;newvar&lt;/EM&gt; is assigned a length of 200 in the temporary table. What is the logic behind this length value? I had assumed length would either adopt the value from the variables&amp;nbsp;&lt;EM&gt;make&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;model,&lt;/EM&gt; or perhaps be assigned the standard 8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Sep 2020 19:01:00 GMT</pubDate>
    <dc:creator>dwasch1</dc:creator>
    <dc:date>2020-09-02T19:01:00Z</dc:date>
    <item>
      <title>String Variable Length from Assignment Statement-- 200?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/String-Variable-Length-from-Assignment-Statement-200/m-p/681135#M205991</link>
      <description>&lt;P&gt;I am confused by the variable length assigned to&amp;nbsp;&lt;EM&gt;newvar&lt;/EM&gt; in the following code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data carstemp;&lt;BR /&gt;Set sashelp.cars;&lt;BR /&gt;newvar=catx(make,model,'');&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;newvar&lt;/EM&gt; is assigned a length of 200 in the temporary table. What is the logic behind this length value? I had assumed length would either adopt the value from the variables&amp;nbsp;&lt;EM&gt;make&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;model,&lt;/EM&gt; or perhaps be assigned the standard 8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 19:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/String-Variable-Length-from-Assignment-Statement-200/m-p/681135#M205991</guid>
      <dc:creator>dwasch1</dc:creator>
      <dc:date>2020-09-02T19:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: String Variable Length from Assignment Statement-- 200?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/String-Variable-Length-from-Assignment-Statement-200/m-p/681139#M205994</link>
      <description>&lt;P&gt;Maxim 1: Read the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=n0p7wxtk0hvn83n1pveisbcp2ae9.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;Documentation&lt;/A&gt;, section "Length of Returned Variable".&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 19:16:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/String-Variable-Length-from-Assignment-Statement-200/m-p/681139#M205994</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-09-02T19:16:22Z</dc:date>
    </item>
  </channel>
</rss>

