<?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 multiply lengths for variable (in character) while merging files in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/multiply-lengths-for-variable-in-character-while-merging-files/m-p/89762#M25625</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to append/merge several files and i have this warning message"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data gompers.gompers_2001_2011;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set gompers.gompers_2000_2001&lt;/P&gt;&lt;P&gt;gompers.gompers_2002_2005&lt;/P&gt;&lt;P&gt;gompers.gompers_2006&lt;/P&gt;&lt;P&gt;gompers.gompers_2007_2009_my&lt;/P&gt;&lt;P&gt;gompers.gompers_2010_my;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: Multiple lengths were specified for the variable CONAME by input data set(s). This may&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cause truncation of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coname is the company name.&lt;/P&gt;&lt;P&gt;the length for this variable is 48 for the 3 original files and 70 for 2007_2009 and 2010 file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i solve this problem. do i go back to all original file and increase the length-how do we write that codes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jun 2012 05:23:46 GMT</pubDate>
    <dc:creator>mei</dc:creator>
    <dc:date>2012-06-22T05:23:46Z</dc:date>
    <item>
      <title>multiply lengths for variable (in character) while merging files</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/multiply-lengths-for-variable-in-character-while-merging-files/m-p/89762#M25625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to append/merge several files and i have this warning message"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data gompers.gompers_2001_2011;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set gompers.gompers_2000_2001&lt;/P&gt;&lt;P&gt;gompers.gompers_2002_2005&lt;/P&gt;&lt;P&gt;gompers.gompers_2006&lt;/P&gt;&lt;P&gt;gompers.gompers_2007_2009_my&lt;/P&gt;&lt;P&gt;gompers.gompers_2010_my;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WARNING: Multiple lengths were specified for the variable CONAME by input data set(s). This may&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cause truncation of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;coname is the company name.&lt;/P&gt;&lt;P&gt;the length for this variable is 48 for the 3 original files and 70 for 2007_2009 and 2010 file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i solve this problem. do i go back to all original file and increase the length-how do we write that codes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 05:23:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/multiply-lengths-for-variable-in-character-while-merging-files/m-p/89762#M25625</guid>
      <dc:creator>mei</dc:creator>
      <dc:date>2012-06-22T05:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: multiply lengths for variable (in character) while merging files</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/multiply-lengths-for-variable-in-character-while-merging-files/m-p/89763#M25626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can try like this...as &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;2007_2009 and 2010 file&lt;/SPAN&gt; has maximum length. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Data gompers.gompers_2001_2011; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;set gompers.gompers_2007_2009_my&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;gompers.gompers_2010_my;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; gompers.gompers_2000_2001&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;gompers.gompers_2002_2005&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;gompers.gompers_2006&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or add length statement before set statement ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Data gompers.gompers_2001_2011; length &lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;coname $ &lt;/SPAN&gt;70.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set gompers.gompers_2000_2001&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;gompers.gompers_2002_2005&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;gompers.gompers_2006&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;gompers.gompers_2007_2009_my&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;gompers.gompers_2010_my;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Thanks,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 05:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/multiply-lengths-for-variable-in-character-while-merging-files/m-p/89763#M25626</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-06-22T05:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: multiply lengths for variable (in character) while merging files</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/multiply-lengths-for-variable-in-character-while-merging-files/m-p/89764#M25627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS assigns the length of a variable when it is seen first time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the order of the data sets does not matter you can place the data sets with length 70 before the data sets with lenght 48 in set statement.&lt;/P&gt;&lt;P&gt; Data gompers.gompers_2001_2011;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &lt;/P&gt;&lt;P&gt;gompers.gompers_2007_2009_my&lt;/P&gt;&lt;P&gt;gompers.gompers_2010_my&lt;/P&gt;&lt;P&gt;gompers.gompers_2000_2001&lt;/P&gt;&lt;P&gt;gompers.gompers_2002_2005&lt;/P&gt;&lt;P&gt;gompers.gompers_2006&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the order of the data sets matters in set statement you can use a length statement before set statement to specify the length of the variable coname.&lt;/P&gt;&lt;P&gt; Data gompers.gompers_2001_2011;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length coname $70;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set gompers.gompers_2000_2001&lt;/P&gt;&lt;P&gt;gompers.gompers_2002_2005&lt;/P&gt;&lt;P&gt;gompers.gompers_2006&lt;/P&gt;&lt;P&gt;gompers.gompers_2007_2009_my&lt;/P&gt;&lt;P&gt;gompers.gompers_2010_my;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 06:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/multiply-lengths-for-variable-in-character-while-merging-files/m-p/89764#M25627</guid>
      <dc:creator>Alpay</dc:creator>
      <dc:date>2012-06-22T06:02:31Z</dc:date>
    </item>
  </channel>
</rss>

