<?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: SAS variable conversion error in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378291#M24609</link>
    <description>&lt;P&gt;Sorry, let me clarify the problem the only reason I put the put function is because of this error, how do I make my variables a character expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MPRINT(STEP2):&amp;nbsp;&amp;nbsp; create table ALL_NPART as select distinct a.* ,b.MP_FIRSTNAME as _Fname ,b.MP_LASTNAME as _Lname ,b.indv_id&lt;BR /&gt;,b.MP_MANAGEDPERSONID ,b.MP_BIRTHDATE as _DOB ,b.MP_zip as _zip from outlib.MCP_QUAL as a left join refdata.xwalk_careone_crm as b&lt;BR /&gt;on UPCASE(COMPRESS(strip(a.PtFirst))) = UPCASE(COMPRESS(strip(b.MP_FIRSTNAME))) and UPCASE(COMPRESS(strip(a.PtLast))) =&lt;BR /&gt;UPCASE(COMPRESS(strip(b.MP_LASTNAME))) ;&lt;BR /&gt;ERROR: Function STRIP requires a character expression as argument 1.&lt;BR /&gt;ERROR: Function STRIP requires a character expression as argument 1.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2017 20:05:36 GMT</pubDate>
    <dc:creator>Rsadiq1</dc:creator>
    <dc:date>2017-07-21T20:05:36Z</dc:date>
    <item>
      <title>SAS variable conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378280#M24606</link>
      <description>&lt;P&gt;Hi I am having an issue, My variables are numeric (according to SAS) and I want to convert them to character, to use the compress statement, but I'm getting this error and not sure if its my put statement that is wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;BR /&gt;MPRINT(STEP2):&amp;nbsp;&amp;nbsp; create table ALL_NPART as select distinct a.* ,b.MP_FIRSTNAME as _Fname ,b.MP_LASTNAME as _Lname ,b.indv_id&lt;BR /&gt;,b.MP_MANAGEDPERSONID ,b.MP_BIRTHDATE as _DOB ,b.MP_zip as _zip from outlib.MCP_QUAL as a left join refdata.xwalk_careone_crm as b&lt;BR /&gt;on UPCASE(COMPRESS(put(a.PtFirst))) = UPCASE(COMPRESS(put(b.MP_FIRSTNAME))) and UPCASE(COMPRESS(put(a.PtLast))) =&lt;BR /&gt;UPCASE(COMPRESS(put(b.MP_LASTNAME))) ;&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: !, !!, &amp;amp;, *, **, +, ',', -, /, &amp;lt;, &amp;lt;=, &amp;lt;&amp;gt;, =, &amp;gt;, &amp;gt;=, ?, AND, BETWEEN,&lt;BR /&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; CONTAINS, EQ, EQT, GE, GET, GT, GTT, IN, IS, LE, LET, LIKE, LT, LTT, NE, NET, NOT, NOTIN, OR, ^, ^=, |, ||, ~, ~=.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 19:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378280#M24606</guid>
      <dc:creator>Rsadiq1</dc:creator>
      <dc:date>2017-07-21T19:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS variable conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378285#M24608</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;I think you're specifying the table alias wrong. &amp;nbsp;Instead of:&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;outlib.MCP_QUAL &lt;STRONG&gt;as a&lt;/STRONG&gt; left join refdata.xwalk_careone_crm&lt;STRONG&gt; as b&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;Simply (no AS):&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;&amp;nbsp;&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;outlib.MCP_QUAL a left join refdata.xwalk_careone_crm b&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I take that back. &amp;nbsp;AS is fine. &amp;nbsp;How about placing parens around the entire ON condition?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;on (
UPCASE(COMPRESS(put(a.PtFirst))) = UPCASE(COMPRESS(put(b.MP_FIRSTNAME))) 
  and UPCASE(COMPRESS(put(a.PtLast))) = UPCASE(COMPRESS(put(b.MP_LASTNAME)))
);&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2017 19:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378285#M24608</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-07-21T19:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS variable conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378291#M24609</link>
      <description>&lt;P&gt;Sorry, let me clarify the problem the only reason I put the put function is because of this error, how do I make my variables a character expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MPRINT(STEP2):&amp;nbsp;&amp;nbsp; create table ALL_NPART as select distinct a.* ,b.MP_FIRSTNAME as _Fname ,b.MP_LASTNAME as _Lname ,b.indv_id&lt;BR /&gt;,b.MP_MANAGEDPERSONID ,b.MP_BIRTHDATE as _DOB ,b.MP_zip as _zip from outlib.MCP_QUAL as a left join refdata.xwalk_careone_crm as b&lt;BR /&gt;on UPCASE(COMPRESS(strip(a.PtFirst))) = UPCASE(COMPRESS(strip(b.MP_FIRSTNAME))) and UPCASE(COMPRESS(strip(a.PtLast))) =&lt;BR /&gt;UPCASE(COMPRESS(strip(b.MP_LASTNAME))) ;&lt;BR /&gt;ERROR: Function STRIP requires a character expression as argument 1.&lt;BR /&gt;ERROR: Function STRIP requires a character expression as argument 1.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 20:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378291#M24609</guid>
      <dc:creator>Rsadiq1</dc:creator>
      <dc:date>2017-07-21T20:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS variable conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378300#M24610</link>
      <description>&lt;P&gt;PtFirst is numeric. &amp;nbsp;How could it ever match the value in MP_LASTNAME, no matter how many functions you apply to it? &amp;nbsp;Do you expect that MP_LASTNAME will sometimes contain a set of digits? &amp;nbsp;Do you possess a format that translates the numeric value of PtFirst into a set of characters?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 20:14:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378300#M24610</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-07-21T20:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS variable conversion error</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378333#M24615</link>
      <description>&lt;P&gt;You aren't including a format with your "put" function. You'll get the same error with this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;sql&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;select&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; UPCASE(COMPRESS(put(a.age))) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;from&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; sashelp.class a;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;Tom&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 21:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-variable-conversion-error/m-p/378333#M24615</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-07-21T21:27:50Z</dc:date>
    </item>
  </channel>
</rss>

