<?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: How to get rid of these warnings in concatenation! in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111301#M30839</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two data sets holding the same variable name, but with a different length.&amp;nbsp; The best solution would be to fix the data.&amp;nbsp; Otherwise, you will face this same issue in every program that combines the two data sets.&amp;nbsp; Fixing the data is relatively easy.&amp;nbsp; As suggested, use PROC CONTENTS to find the length of the variable in each data set.&amp;nbsp; Then for the shorter variable, lengthen it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a.book2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length account_name $ 30 /* or whatever the longer length is */;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set a.book2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't fix the data, there are simple but less automated ways to program around it.&amp;nbsp; For example, you could switch the order in the SET statement so the data set with the longer variable is named first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set a.book2 a.book1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could add a length statement in the DATA step that combines them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length short_name $ 30 /* or whatever the longer length is */;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set .....;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is wise not to ignore this message!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 22:17:10 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2012-09-03T22:17:10Z</dc:date>
    <item>
      <title>How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111295#M30833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;Hi Colleagues,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;I have concatenated the attached two data sets.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: #ff0000; font-size: 11pt;"&gt;Step I - Sorting 2 data sets&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=a.book1 &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=a.book1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; bank_number account_number current_date ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;sort&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=a.book2&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;out&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=a.book2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; bank_number account_number current_date ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG style="font-size: 11pt; background: white; font-family: 'Courier New';"&gt;Step 2&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;&lt;STRONG style="font-size: 11pt; background: white; font-family: 'Courier New';"&gt;/*&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; font-size: 11pt;"&gt; Carrying out "union of two datasets vertically by Account group", Ksharp is acknowledged.*/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; dataset; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; a.book1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.book2 (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=inb&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;rename&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;=(account_name=short_name Net_Write_off_total_USD=balance)); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; bank_number account_number current_date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; inb &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; Arrears_Band=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 11pt;"&gt;'writoff '&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 11pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;It seems the concatenation happens correctly but the following message appears in the log. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;WARNING: Multiple lengths were specified for the variable Short_name by input data set(s). This may cause truncation of data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;i) Could you please let me know why?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;ii) And please help me to get rid of.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 11pt;"&gt;Mirisage&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 18:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111295#M30833</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-09-03T18:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111296#M30834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;solution:&lt;/P&gt;&lt;P&gt;you need to find out the length of variable "short_name" in book1 and the length of account_name in book2.&lt;/P&gt;&lt;P&gt;if length of short_name=8 and length of account_name=12, then add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 14.399999618530273px; background-color: #ffffff;"&gt;"length short_name $ 12;" to your code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy; background-color: white;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;length short_name $ 12;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; a.book1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.book2 (&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;=inb&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;rename&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;=(account_name=short_name Net_Write_off_total_USD=balance));&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; bank_number account_number current_date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; inb &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; Arrears_Band=&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: purple;"&gt;'writoff '&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy; background-color: white;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 18:28:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111296#M30834</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-09-03T18:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111297#M30835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are trying to put the value of ACCOUNT_NAME from BOOK2 dataset into the variable SHORT_NAME from the BOOK1 dataset, but they are defined with different lengths.&amp;nbsp;&amp;nbsp; Easiest fix it make BOOK1 and BOOK2 consistent so that they use the same variable names and attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since they have different names it should be easy to fix in data step that combines them. &lt;/P&gt;&lt;P&gt;Actually in your data SHORT_NAME is length 16 and ACCOUNT_NAME is length 18 so you might want to reverse the logic so that ACCOUNT_NAME is kept and SHORT_NAME is dropped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy; background-color: white;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; dataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="color: #000000; font-style: inherit; font-size: 11pt; background-color: white; font-family: 'Courier New';"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; a.book1&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a.book2 (in=inb)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;&amp;nbsp; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; bank_number account_number current_date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; inb &lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: blue;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt; do ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;&amp;nbsp; Arrears_Band=&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: purple;"&gt;'writoff '&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; background-color: white; font-size: 11pt; font-family: 'Courier New'; color: blue;"&gt;&amp;nbsp; short_name=&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; background-color: white; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;account_name;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; background-color: white; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;&amp;nbsp; balance=Net_Write_off_total_USD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; background-color: white; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-style: inherit; background-color: white; font-size: 11pt; font-family: 'Courier New'; color: black;"&gt;drop account_name &lt;SPAN style="color: #000000; font-family: 'Courier New'; font-size: 15px; background-color: #ffffff;"&gt;Net_Write_off_total_USD&lt;/SPAN&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.800000190734863px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; color: navy; background-color: white;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-style: inherit; font-size: 11pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 18:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111297#M30835</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-09-03T18:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111298#M30836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linlin,&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, I get 3 warnings like below when I have run my original data sets (but I have posted only two obs taking from my data set).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;WARNING: Multiple lengths were specified for the BY variable Account_number by input data sets. This may cause unexpected results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;WARNING: Multiple lengths were specified for the variable Short_name by input data set(s). This may cause truncation of data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;WARNING: Multiple lengths were specified for the variable Country by input data set(s). This may cause truncation of data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: Arial; color: #575757;"&gt;Coming back to the two data sets I have attahced, the values of variable "short_name" in book1 are :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;AACKMAA EEEEEE W&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: Arial; color: #575757;"&gt;When I manualy count the number of characters in this, there are 16 including the spaces between name pieces. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: Arial; color: #575757;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;SPAN lang="EN" style="font-family: Arial; color: #575757; text-decoration: underline;"&gt;Question:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: Arial; color: #575757;"&gt;So, 16 is the length of value “&lt;/SPAN&gt;&lt;SPAN style="font-family: Arial;"&gt;AACKMAA EEEEEE W”, isn't it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;Let us say there is a name like below&amp;nbsp; (without quotes) in my original larger data set,&amp;nbsp; we never know!.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: Arial;"&gt;“Joseph Peter Dennis Fernando Tores Arnold”&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;In this case, the length is 41 including the spaces, isn't it?.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial;"&gt;But we cannot test this by trail and error (sorry I am a novice). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: yellow;"&gt;Would there be any easy method to find out the length of the longest value of a character variable in a given data set?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: yellow; font-size: 12pt;"&gt;Also &lt;SPAN&gt;Would there be any easy method &lt;/SPAN&gt; to find out the length of the longest value of a numeric variable in a given data set?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: yellow; font-size: 12pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial; background: yellow; font-size: 12pt;"&gt;Mirisage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="font-family: Arial; color: #575757;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 64px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="18" width="64"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 19:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111298#M30836</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-09-03T19:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111299#M30837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can find length of a variable from proc contents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;proc contents data=sashelp.class;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Alphabetic List of Variables and Attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable&amp;nbsp;&amp;nbsp;&amp;nbsp; Type&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;Len&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&amp;nbsp;&amp;nbsp;&amp;nbsp; Age&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp; Height&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; Name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Char&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; 8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Char&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 19:35:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111299#M30837</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-09-03T19:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111300#M30838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There appear to be two issues here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The amount of storage for a variable as defined in a dataset - Linlin's post explains how you find that out.&lt;/P&gt;&lt;P&gt;2) The maximum length of the contents of a variable. For a character variable this can be easily determined:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select max(length(name))&lt;/P&gt;&lt;P&gt;&amp;nbsp; from sashelp.class;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The maximum length of a numeric variable has no meaning generally speaking as it depends how you display a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data = sashelp.class;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var age;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format age 10.6; if age is 10 it will be displayed as 10.000000 &amp;lt;== number has a "length" of 9 digits including the decimal place&lt;/P&gt;&lt;P&gt;&amp;nbsp; format age 10.2; if age is 10 it will be displayed as 10.00 &amp;lt;== number has a "length" of 5 digits including the decimal place &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see changing how the same number is displayed can change it's "length" in terms of digits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For numeric variables you don't normally change the amount of storage from the default of 8 bytes (equivalent of characters). 8 bytes will hold up to 16 digits accurately including decimal places, so as a beginner I would recommend you do not change this as you can easily get strange results. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 20:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111300#M30838</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2012-09-03T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111301#M30839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have two data sets holding the same variable name, but with a different length.&amp;nbsp; The best solution would be to fix the data.&amp;nbsp; Otherwise, you will face this same issue in every program that combines the two data sets.&amp;nbsp; Fixing the data is relatively easy.&amp;nbsp; As suggested, use PROC CONTENTS to find the length of the variable in each data set.&amp;nbsp; Then for the shorter variable, lengthen it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data a.book2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length account_name $ 30 /* or whatever the longer length is */;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set a.book2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't fix the data, there are simple but less automated ways to program around it.&amp;nbsp; For example, you could switch the order in the SET statement so the data set with the longer variable is named first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set a.book2 a.book1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you could add a length statement in the DATA step that combines them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dataset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length short_name $ 30 /* or whatever the longer length is */;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; set .....;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is wise not to ignore this message!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 22:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111301#M30839</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2012-09-03T22:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111302#M30840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have the data set open, you can also check the length of a character variable by mousing over the column header. After a little while a tooltip will pop up with variable name, length, and other properties.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 00:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111302#M30840</guid>
      <dc:creator>GeoffreyBrent</dc:creator>
      <dc:date>2012-09-04T00:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get rid of these warnings in concatenation!</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111303#M30841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Linilin,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Many thanks for the proc contents clue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hi Tom,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This is an elegant way of doing it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hi &lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757;"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/people/SASKiwi"&gt;SASKiwi&lt;/A&gt;,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757;"&gt;Your example code to find out the “&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757;"&gt;maximum length of the contents of a variable” is what I have been looking for sometime. And maximum length of a numeric variable explanation is nice – Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi &lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757;"&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/people/Astounding"&gt;Astounding&lt;/A&gt;, many thanks for your examples.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757;"&gt;Hi &lt;A _jive_internal="true" href="https://communities.sas.com/people/GeoffreyBrent"&gt;GeoffreyBrent&lt;/A&gt; – Your short cut – mousing- works well. Thank you very much for this. &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757;"&gt;In addition, I explored a bit on :&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 11pt;"&gt;“options&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; varlenchk=nowarn;”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: yellow; color: black; font-size: 11pt;"&gt;This option works only for “non By” variables&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt;/*WARNING: Multiple lengths were specified for the BY variable Account_number by &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt;input data sets. &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: yellow; color: red; font-size: 11pt;"&gt;This may cause unexpected results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;Above&amp;nbsp; is the wording of warning for By variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt;WARNING: Multiple lengths were specified for the variable Short_name by input &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt;data set(s). &lt;SPAN style="background: yellow;"&gt;This may cause truncation of data.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;Above&amp;nbsp; is the wording of warning for "non BY" variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt;WARNING: Multiple lengths were specified for the variable Country by input &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt;data set(s). &lt;SPAN style="background: yellow;"&gt;This may cause truncation of data&lt;/SPAN&gt;.*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 11pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: red; font-size: 11pt;"&gt;Above is the wording of warning for "non BY" variables&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 7pt;"&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 7pt;"&gt; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 7pt;"&gt;Best regards to all,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="font-family: Helvetica; color: #575757; font-size: 7pt;"&gt;Mirisage&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 15:13:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-rid-of-these-warnings-in-concatenation/m-p/111303#M30841</guid>
      <dc:creator>Mirisage</dc:creator>
      <dc:date>2012-09-04T15:13:19Z</dc:date>
    </item>
  </channel>
</rss>

