<?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: Keep character variables in merge in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123645#M33981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think your statement is true. you should post some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 20:08:48 GMT</pubDate>
    <dc:creator>Linlin</dc:creator>
    <dc:date>2012-05-22T20:08:48Z</dc:date>
    <item>
      <title>Keep character variables in merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123644#M33980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I merge two datasets where the first dataset does not include variable A and the second dataset includes the character variable A, then SAS will create a numeric variable A because this dataset was not set as the first dataset in the merge. Can I force SAS to keep A as a character variable although it is set as a second dataset in a merge?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;set var_b_c textvar_a;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have thousands of variables it is tricky to do it manually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 16:06:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123644#M33980</guid>
      <dc:creator>blackraven</dc:creator>
      <dc:date>2012-05-22T16:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Keep character variables in merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123645#M33981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think your statement is true. you should post some sample data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 20:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123645#M33981</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-05-22T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Keep character variables in merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123646#M33982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was truly surprised to see this, but it turned out I was too tired to notice value formatting was on. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 20:19:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123646#M33982</guid>
      <dc:creator>blackraven</dc:creator>
      <dc:date>2012-05-22T20:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Keep character variables in merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123647#M33983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the order of these two datasets&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;set&amp;nbsp; textvar_a&amp;nbsp; var_b_c;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 03:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123647#M33983</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-05-23T03:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Keep character variables in merge</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123648#M33984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unable to reproduce the error using SAS 9.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt; font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt; work.WithoutName;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; background: none repeat scroll 0% 0% white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt; sashelp.class(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; background: none repeat scroll 0% 0% white;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;=Name);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt;"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt; work.test;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; background: none repeat scroll 0% 0% white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt; work.WithoutName sashelp.class;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: courier new,courier; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; background: none repeat scroll 0% 0% white;"&gt;proc&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: navy; background: none repeat scroll 0% 0% white;"&gt;print&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN-GB" style="font-size: 10pt; color: blue; background: none repeat scroll 0% 0% white;"&gt;data&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;=sashelp.vcolumn(&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: blue; background: none repeat scroll 0% 0% white;"&gt;where&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;= &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-indent: 35.4pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;(memname = &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: #9d4d61; background: none repeat scroll 0% 0% white;"&gt;'TEST'&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt; and upcase(name) = &lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: #9d4d61; background: none repeat scroll 0% 0% white;"&gt;'NAME'&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;)) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; text-indent: 35.4pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: blue; background: none repeat scroll 0% 0% white;"&gt;noobs&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN lang="EN-GB" style="font-size: 10pt; color: blue; background: none repeat scroll 0% 0% white;"&gt;var&lt;/SPAN&gt;&lt;SPAN lang="EN-GB" style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt; libname memname memtype name type;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;&lt;SPAN style="color: navy; background: none repeat scroll 0% 0% white; font-size: 10pt;"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; background: none repeat scroll 0% 0% white;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Consolas; color: black; background: none repeat scroll 0% 0% white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; background: none repeat scroll 0% 0% white; font-family: arial,helvetica,sans-serif;"&gt;Proc print shows:&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV align="center"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;libname memname memtype name type&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WORK TEST DATA Name char&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2012 08:05:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Keep-character-variables-in-merge/m-p/123648#M33984</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2012-05-24T08:05:44Z</dc:date>
    </item>
  </channel>
</rss>

