<?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: Changing the length of a character variable in DATA STEP? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/340021#M77661</link>
    <description>&lt;P&gt;If you had read the log after running the step combining the sets you would have seen this message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;WARNING: &lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Multiple&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; lengths were specified for the variable _NAME_ by input data set(s)&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;.&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; This may cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt; truncation of &lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;data.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="SAS Monospace" size="2"&gt;Which tells you what the cause was.&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2017 16:08:04 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-03-10T16:08:04Z</dc:date>
    <item>
      <title>Changing the length of a character variable in DATA STEP?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/339875#M77585</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/*Append all table*/
data spay.contactless;
	set usage transactions active ratio;
run;&lt;/PRE&gt;&lt;P&gt;all the 5 tables above has a variable _NAME_. However when I append them by row as above, the variable _NAME_ has truncated values.&lt;/P&gt;&lt;P&gt;How can I redefine the length for _NAME_?&lt;/P&gt;&lt;P&gt;Or how can I create another variable as below?&lt;/P&gt;&lt;PRE&gt;/*Combine for Contactless Table*/
data spay.contactless;
  input new_NAME_ $20;
	set spay.usage spay.transactions spay.active spay.ratio;
	new_NAME_ = _NAME_; *copy _NAME_ to new_NAME_;
run;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Mar 2017 04:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/339875#M77585</guid>
      <dc:creator>afiqcjohari</dc:creator>
      <dc:date>2017-03-10T04:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the length of a character variable in DATA STEP?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/339876#M77586</link>
      <description>&lt;P&gt;SImplest:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;/*Append all table*/
data spay.contactless;&lt;BR /&gt;  length _name_ $20;
	set usage transactions active ratio;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just make sure the LENGTH statement appears before the SET statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 04:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/339876#M77586</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-03-10T04:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the length of a character variable in DATA STEP?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/339945#M77620</link>
      <description>&lt;P&gt;_NAME_ is a SAS internal variable name which you get from, for example, a transpose output. &amp;nbsp;Why would you want to be using this further, use your own variables or you might encounter problems later on. &amp;nbsp;Also, why do you have several sets of the same data which need to be put back together? &amp;nbsp;If your data is in one dataset - and we have discussed this in one of your other posts - then this question no longer exists. &amp;nbsp;Your basically just creating blocks of work for yourself needlessly.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 09:46:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/339945#M77620</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-10T09:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Changing the length of a character variable in DATA STEP?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/340021#M77661</link>
      <description>&lt;P&gt;If you had read the log after running the step combining the sets you would have seen this message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt;WARNING: &lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;Multiple&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; lengths were specified for the variable _NAME_ by input data set(s)&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;.&lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt; This may cause&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="SAS Monospace" size="2"&gt; truncation of &lt;/FONT&gt;&lt;FONT face="SAS Monospace" size="2"&gt;data.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" face="SAS Monospace" size="2"&gt;Which tells you what the cause was.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2017 16:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-the-length-of-a-character-variable-in-DATA-STEP/m-p/340021#M77661</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-10T16:08:04Z</dc:date>
    </item>
  </channel>
</rss>

