<?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: Using the Length Statement while combining two data sets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79721#M22951</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Jagadish, however I've just discovered that my two original datasets have formats and informats that are inherited by unifieddataset.&amp;nbsp; So whilst I set the length to $100 on unifieddataset, the informat and format remain as they were in original_dataset1.&amp;nbsp; To fix this, I also set the format and informat on unifieddataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;data unifieddataset;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;length variable1 $100;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;informat variable1 $100.;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;format variable1 $100.;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;set original_dataset1 original_dataset2;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt; Joe &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 11:47:22 GMT</pubDate>
    <dc:creator>sits</dc:creator>
    <dc:date>2013-03-18T11:47:22Z</dc:date>
    <item>
      <title>Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79719#M22949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;#SASBeginnerAlert&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #SASBeginnerAlert&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi, I'm trying to use the length statement just like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;data unifieddataset;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;length variable1 $100;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set original_dataset1 original_dataset2;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Where the two original datasets both have &lt;EM&gt;variable1&lt;/EM&gt;.&amp;nbsp;&amp;nbsp; &lt;EM&gt;original&lt;/EM&gt;_&lt;EM&gt;dataset1&lt;/EM&gt; has values for &lt;EM&gt;variable1&lt;/EM&gt; that are 20 chars long, and&amp;nbsp; &lt;EM&gt;original&lt;/EM&gt;_&lt;EM&gt;dataset2&lt;/EM&gt; has values for &lt;EM&gt;variable1&lt;/EM&gt; &lt;SPAN style="font-family: mceinline;"&gt;that are 50 chars long.&amp;nbsp; When I run this, the length of &lt;EM&gt;variable1&lt;/EM&gt; in &lt;EM&gt;unifieddataset&lt;/EM&gt; comes to 20 chars long, and truncates the longer values from &lt;EM&gt;original_dataset2, &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: mceinline;"&gt;which, in my beginner's ignorance, bewilders me as to why the length statement is ignored.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: mceinline;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: mceinline;"&gt;Documentation I've seen online pretty much shows what I've written above:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001336069.htm" title="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a001336069.htm"&gt;Step-by-Step Programming with Base SAS(R) Software&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: mceinline;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: mceinline;"&gt;Surely the error I'm making is fundamentally simple, and I'd really appreciate someone telling me what it is I'm doing wrong.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 10:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79719#M22949</guid>
      <dc:creator>sits</dc:creator>
      <dc:date>2013-03-18T10:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79720#M22950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe, there should not be any problem with the code what you have written. it is right. The length statement should work. It should give the variable a length of $100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just tried a sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dsn1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; variable1="cha";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dsn2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; variable1="character";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length variable1 $10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dsn1 dsn2;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It example is similar to what you have queried and for me it worked without any problem. The variable1 length in the want dataset is $10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 11:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79720#M22950</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-03-18T11:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79721#M22951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Jagadish, however I've just discovered that my two original datasets have formats and informats that are inherited by unifieddataset.&amp;nbsp; So whilst I set the length to $100 on unifieddataset, the informat and format remain as they were in original_dataset1.&amp;nbsp; To fix this, I also set the format and informat on unifieddataset:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;data unifieddataset;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;length variable1 $100;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;informat variable1 $100.;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;format variable1 $100.;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;set original_dataset1 original_dataset2;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36.0pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt; Joe &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 11:47:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79721#M22951</guid>
      <dc:creator>sits</dc:creator>
      <dc:date>2013-03-18T11:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79722#M22952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure how far the statements&lt;/P&gt;&lt;P style="text-indent: 36pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;informat variable1 $100.;&lt;/EM&gt;&lt;/P&gt;&lt;P style="text-indent: 36pt;"&gt;&lt;EM style="font-family: 'Rockwell','serif';"&gt;format variable1 $100.;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: 36pt;"&gt;helped you, because what i believe is if there are character data then length statement should be enough to solve the problem. Could you please let me know the data that is present in variable1 for better understanding.&lt;/P&gt;&lt;P style="text-indent: 36pt;"&gt;&lt;/P&gt;&lt;P style="text-indent: 36pt;"&gt;Thanks,&lt;/P&gt;&lt;P style="text-indent: 36pt;"&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:11:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79722#M22952</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-03-18T12:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79723#M22953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assigning formats to character variables is a bad idea, as your example illustrates. Unfortunately some SAS processes (PROC IMPORT or SQL connections to external databases) have a nasty habit of attaching $nn formats to every character variable.&amp;nbsp; You can remove them by using a "naked" format statement, a format statement that lists variables, but no format.&amp;nbsp; Informats are not much of an issue as they are really not used unless you are reading in text files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding: 0px 0px 0px 30px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data unifieddataset;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; length variable1 $100;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; set original_dataset1 original_dataset2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; format variable1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79723#M22953</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-18T12:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79724#M22954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc print data=original_dataset1;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc print data=original_dataset2;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc print data=unifieddataset;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt; Results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aosidfjaiosdosidjf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tuesday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aosidfjaiosdjfaiosjdfioasjdofijasodifjaosidjfaiosdjfoiasjdfoiasjdfioasjdfiojasdiofjasiodjfas&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monday&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aosidfjaiosdosidjf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tuesday&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aosidfjaiosdjfaios&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monday&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Length, Informat and Format for &lt;EM&gt;dummy_data1&lt;/EM&gt; in &lt;EM&gt;original_dataset1&lt;/EM&gt; is 175, $175. and $175.&amp;nbsp; For &lt;EM&gt;original_dataset2&lt;/EM&gt;, they're 18, $18. and $18.&amp;nbsp; Using the original code I pasted, for &lt;EM&gt;unifieddataset&lt;/EM&gt; I get 100, $18. and $18 and the above values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(FYI, the string you see in the above results is "WARNING: Data too long for column "dummy_data1"; truncated to 92 characters to fit."; the actual string 175 chars long.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I set the Informat and Format to, say, 200, then it all fits:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;proc print data=unifieddataset;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;run;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Obs&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dummy_data2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aosidfjaiosdosidjf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Tuesday&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aosidfjaiosdjfaiosjdfioasjdofijasodifjaosidjfaiosdjfoiasjdfoiasjdfioasjdfiojasdiofjasiodjfas&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Monday&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 12:58:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79724#M22954</guid>
      <dc:creator>sits</dc:creator>
      <dc:date>2013-03-18T12:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79725#M22955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh brilliant!&amp;nbsp; Indeed, I am using PROC IMPORTs to import my data (which, I promise you, is more than just a random arrangement of the eight home-keys on my keyboard that you see above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for clarifying what is happening here!&amp;nbsp; Everything I had been reading online about using the Length statement to help with the consolidation of the same variable with varying lengths from different originating datasets wasn't working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:10:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79725#M22955</guid>
      <dc:creator>sits</dc:creator>
      <dc:date>2013-03-18T13:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79726#M22956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Much better off just removing the format than assigning some random value like $200. That will just cause more confusion later on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79726#M22956</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-18T13:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79727#M22957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend adding a step to remove the formats from your character variable after using PROC IMPORT.&amp;nbsp;&amp;nbsp; For example to remove the formats from all character variables in a dataset you could use PROC DATASETS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc datasets lib=work nolist;&lt;/P&gt;&lt;P&gt;&amp;nbsp; modify x;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format _character_ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat _character_ ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:14:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79727#M22957</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-03-18T13:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79728#M22958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:15:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79728#M22958</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2013-03-18T13:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using the Length Statement while combining two data sets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79729#M22959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Indeed -- before your answer I was thinking that having to set it to something enormous (&amp;gt;$200) was an ugly solution, but it got me past several hours of frustration so I wasn't complaining. &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, thanks for pointing out PROC DATASETS for me -- I'll look in to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks to you both! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 13:18:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Using-the-Length-Statement-while-combining-two-data-sets/m-p/79729#M22959</guid>
      <dc:creator>sits</dc:creator>
      <dc:date>2013-03-18T13:18:42Z</dc:date>
    </item>
  </channel>
</rss>

