<?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: About the length of column in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667958#M23066</link>
    <description>&lt;P&gt;When the data step compiler compiles the code, it sets variable attributes from the first encounter of a variable where the attribute can be deduced.&lt;/P&gt;
&lt;P&gt;In your case this is the statement where the 6-character string "luxury" is assigned; subsequent changes in the length are ignored.&lt;/P&gt;
&lt;P&gt;Make it a habit to put attribute-setting statements (ATTRIB, LENGTH, FORMAT, but also SET, MERGE, UPDATE) into the top of your data step code.&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 05:14:42 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-07-09T05:14:42Z</dc:date>
    <item>
      <title>About the length of column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667945#M23064</link>
      <description>&lt;P&gt;I took quiz from SAS programming 1, I think the length is 8. But the answer is 6. Could anyone help me about it?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jianan_luna_0-1594266594877.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/47030i993E33380DF22D25/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jianan_luna_0-1594266594877.png" alt="Jianan_luna_0-1594266594877.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 03:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667945#M23064</guid>
      <dc:creator>Jianan_luna</dc:creator>
      <dc:date>2020-07-09T03:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: About the length of column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667950#M23065</link>
      <description>The assignment to 'luxury' in the 3rd line sets the length at 6. Put the length statement prior to the assignment to get the correct length.</description>
      <pubDate>Thu, 09 Jul 2020 04:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667950#M23065</guid>
      <dc:creator>ketpt42</dc:creator>
      <dc:date>2020-07-09T04:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: About the length of column</title>
      <link>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667958#M23066</link>
      <description>&lt;P&gt;When the data step compiler compiles the code, it sets variable attributes from the first encounter of a variable where the attribute can be deduced.&lt;/P&gt;
&lt;P&gt;In your case this is the statement where the 6-character string "luxury" is assigned; subsequent changes in the length are ignored.&lt;/P&gt;
&lt;P&gt;Make it a habit to put attribute-setting statements (ATTRIB, LENGTH, FORMAT, but also SET, MERGE, UPDATE) into the top of your data step code.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 05:14:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/About-the-length-of-column/m-p/667958#M23066</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-09T05:14:42Z</dc:date>
    </item>
  </channel>
</rss>

