<?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 Changing character length of base in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-character-length-of-base/m-p/787242#M251510</link>
    <description>&lt;P&gt;So I'm getting an warning when appending.&lt;/P&gt;&lt;P&gt;Warning: Variable 'Class Name'n has different lengths on BASE and DATA files (BASE 32 DATA 38)&lt;/P&gt;&lt;P&gt;Warning: Variable 'Parent Name'n has different lengths on BASE and DATA files (BASE 32 DATA 38)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I get base and data to match by changing BASE? So Class Name has BASE 38 and Parent Name has BASE 38 so they all match. I can't seem to find any examples on how to do this correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have done is this in an attempt to fix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Data dmbi.test;
set dmbi.february;
length 'Class Name'n $38
'Parent Name'n $38;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I still get the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 15:39:23 GMT</pubDate>
    <dc:creator>Taker123</dc:creator>
    <dc:date>2021-12-23T15:39:23Z</dc:date>
    <item>
      <title>Changing character length of base</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-character-length-of-base/m-p/787242#M251510</link>
      <description>&lt;P&gt;So I'm getting an warning when appending.&lt;/P&gt;&lt;P&gt;Warning: Variable 'Class Name'n has different lengths on BASE and DATA files (BASE 32 DATA 38)&lt;/P&gt;&lt;P&gt;Warning: Variable 'Parent Name'n has different lengths on BASE and DATA files (BASE 32 DATA 38)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I get base and data to match by changing BASE? So Class Name has BASE 38 and Parent Name has BASE 38 so they all match. I can't seem to find any examples on how to do this correctly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I have done is this in an attempt to fix:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;Data dmbi.test;
set dmbi.february;
length 'Class Name'n $38
'Parent Name'n $38;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But I still get the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 15:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-character-length-of-base/m-p/787242#M251510</guid>
      <dc:creator>Taker123</dc:creator>
      <dc:date>2021-12-23T15:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Changing character length of base</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-character-length-of-base/m-p/787248#M251514</link>
      <description>&lt;P&gt;You cannot change the length of a character variable once the data step compiler has already set it.&lt;/P&gt;
&lt;P&gt;Move the LENGTH statement before the SET statement if you want to use it to change the length of variables that exist in the input dataset(s).&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 16:09:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-character-length-of-base/m-p/787248#M251514</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-12-23T16:09:37Z</dc:date>
    </item>
  </channel>
</rss>

