<?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: Character and numeric in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31455#M4180</link>
    <description>Explore using the various CAT-related functions in a DATA step.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Wed, 16 Dec 2009 19:40:45 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-12-16T19:40:45Z</dc:date>
    <item>
      <title>Character and numeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31454#M4179</link>
      <description>I am in EG 4.2 and forgot how to combine a numeric and character string. Somebody sent me data with a three letter prefix in one column and the number suffix in another. What do i do to recombine II does not seem to work.</description>
      <pubDate>Wed, 16 Dec 2009 18:40:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31454#M4179</guid>
      <dc:creator>DavidD</dc:creator>
      <dc:date>2009-12-16T18:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Character and numeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31455#M4180</link>
      <description>Explore using the various CAT-related functions in a DATA step.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 16 Dec 2009 19:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31455#M4180</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-16T19:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Character and numeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31456#M4181</link>
      <description>If you're using PROC SQL code (and that means if you're writing an expression in the query builder too!!), just a warning that SAS won't do automatic conversion of numeric to character. You'd want a PUT function for that. There's a nice example here (PUT function is about 2/3 down the page):&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/35/315.html" target="_blank"&gt;http://support.sas.com/kb/35/315.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Once a PUT function does the conversion work in the expression, you could use "||" as you suggest to conbine the strings. You could also use a function like CATS. Something like...&lt;BR /&gt;
&lt;BR /&gt;
CATS(t1.prefix,PUT(t1.number,4.))</description>
      <pubDate>Wed, 23 Dec 2009 19:57:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31456#M4181</guid>
      <dc:creator>RichardH_sas</dc:creator>
      <dc:date>2009-12-23T19:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Character and numeric</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31457#M4182</link>
      <description>No need to use the inner put() with cats(). &lt;BR /&gt;
Cats() digests both character and numeric.</description>
      <pubDate>Fri, 25 Dec 2009 05:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Character-and-numeric/m-p/31457#M4182</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2009-12-25T05:42:20Z</dc:date>
    </item>
  </channel>
</rss>

