<?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: numeric/char conflict in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19101#M2924</link>
    <description>You'll have to convert one of them.&lt;BR /&gt;
&lt;BR /&gt;
to convert from num to char, use the put function.&lt;BR /&gt;
see: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000199354.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000199354.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
to convert from char to num, use the input function.&lt;BR /&gt;
see: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000180357.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000180357.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Greetings from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos at &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
    <pubDate>Wed, 15 Apr 2009 15:43:23 GMT</pubDate>
    <dc:creator>DanielSantos</dc:creator>
    <dc:date>2009-04-15T15:43:23Z</dc:date>
    <item>
      <title>numeric/char conflict</title>
      <link>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19100#M2923</link>
      <description>How can I get this where statement in proc sql to work when one ssn is a char and the other is numberic?&lt;BR /&gt;
&lt;BR /&gt;
where B.pat_ssn = A.SSN;</description>
      <pubDate>Wed, 15 Apr 2009 15:30:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19100#M2923</guid>
      <dc:creator>Marilyn</dc:creator>
      <dc:date>2009-04-15T15:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: numeric/char conflict</title>
      <link>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19101#M2924</link>
      <description>You'll have to convert one of them.&lt;BR /&gt;
&lt;BR /&gt;
to convert from num to char, use the put function.&lt;BR /&gt;
see: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000199354.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000199354.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
to convert from char to num, use the input function.&lt;BR /&gt;
see: &lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000180357.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/61724/HTML/default/a000180357.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Greetings from Portugal.&lt;BR /&gt;
&lt;BR /&gt;
Daniel Santos at &lt;A href="http://www.cgd.pt" target="_blank"&gt;www.cgd.pt&lt;/A&gt;</description>
      <pubDate>Wed, 15 Apr 2009 15:43:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19101#M2924</guid>
      <dc:creator>DanielSantos</dc:creator>
      <dc:date>2009-04-15T15:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: numeric/char conflict</title>
      <link>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19102#M2925</link>
      <description>ok...at what point in the procedure do I do this?&lt;BR /&gt;
proc sql;&lt;BR /&gt;
CREATE TABLE x.out04 AS SELECT B.kssn FORMAT=$9. AS kSSN,&lt;BR /&gt;
	  A.ISSN FORMAT=$9.,&lt;BR /&gt;
	 A.DIAG1 FORMAT=$7.&lt;BR /&gt;
	 FROM  N.YR2004 AS A ,&lt;BR /&gt;
                x.ketssn AS B &lt;BR /&gt;
	  where B.kssn = A.ISSN;&lt;BR /&gt;
QUIT;</description>
      <pubDate>Wed, 15 Apr 2009 15:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19102#M2925</guid>
      <dc:creator>Marilyn</dc:creator>
      <dc:date>2009-04-15T15:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: numeric/char conflict</title>
      <link>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19103#M2926</link>
      <description>In the WHERE clause, e.g.&lt;BR /&gt;
&lt;BR /&gt;
WHERE b.pat_ssn = put(a.ssn,9.)&lt;BR /&gt;
&lt;BR /&gt;
If b.pat_ssn has embedded hyphens, you'll need to use the SSN format for a.ssn (say ssn11.).</description>
      <pubDate>Wed, 15 Apr 2009 18:09:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/numeric-char-conflict/m-p/19103#M2926</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-04-15T18:09:02Z</dc:date>
    </item>
  </channel>
</rss>

