<?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: ERROR: Expression using equals (=) has components that are of different data types. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/355691#M273902</link>
    <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, I do not think that I missed any %letioyear=2015 (my rear of revision).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the part of the code, I keep changing things around and no output gets succesfully created...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect to odbc as iips&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;(datasrc=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"IIPS"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;*************************************************************;&lt;/P&gt;&lt;P&gt;create table tempsas.indCode_List as&lt;/P&gt;&lt;P&gt;select * from connection to iips&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;from cde.getCodes(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'io'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'ind'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'NAICS07'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;order by code&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;**********************************************************************************************;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;create table tempsas.employment as&lt;/P&gt;&lt;P&gt;select cm.code_id as indCode_id, cm.code as indCode, cm.descr as indDescr, ed.period, ed.value as employment&lt;/P&gt;&lt;P&gt;from dbo.def_dataView ed&lt;/P&gt;&lt;P&gt;join tempsas.indCode_List cm&lt;/P&gt;&lt;P&gt;on ed.code_id = cm.code_id&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where ed.period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;ioyear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and ed.datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and upcase(ed.classCode) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'FTPT'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and upcase(ed.typeCode) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'EMP'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;order by cm.code&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;create table tempsas.ind_comp as&lt;/P&gt;&lt;P&gt;select indCode, sum(val) as compensation&lt;/P&gt;&lt;P&gt;from trn.dataView&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;ioyear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and upcase(substr(itmCode,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'W'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;group by indCode&lt;/P&gt;&lt;P&gt;order by indcode&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.ind_conc out=tempsas.ind_conc_xIndCode;&lt;/P&gt;&lt;P&gt;by indCode indCodeDescr;&lt;/P&gt;&lt;P&gt;data tempsas.emp_comp_conc;&lt;/P&gt;&lt;P&gt;merge tempsas.employment(in=a) tempsas.ind_comp(in=b) tempsas.ind_conc_xIndCode;&lt;/P&gt;&lt;P&gt;by indCode;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;if a=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; and b=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.emp_comp_conc out=tempsas.emp_comp_conc_sort;&lt;/P&gt;&lt;P&gt;by indACPSA indACPSADescr;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.emp_comp_conc_sort;&lt;/P&gt;&lt;P&gt;by indACPSA;&lt;/P&gt;&lt;P&gt;id indACPSADescr;&lt;/P&gt;&lt;P&gt;var employment compensation;&lt;/P&gt;&lt;P&gt;output out=tempsas.emp_comp_summary(drop=_type_ _freq_) sum= ;&lt;/P&gt;&lt;P&gt;data tempsas.emp_conc_ratio_0;&lt;/P&gt;&lt;P&gt;merge tempsas.emp_comp_summary tempsas.indACPSA_ratio_sort;&lt;/P&gt;&lt;P&gt;by indACPSA;&lt;/P&gt;&lt;P&gt;empACPSA = employment * indACPSA_ratio;&lt;/P&gt;&lt;P&gt;compACPSA = compensation * indACPSA_ratio;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.emp_conc_ratio_0;&lt;/P&gt;&lt;P&gt;var employment compensation indACPSA_ratio empACPSA compACPSA;&lt;/P&gt;&lt;P&gt;output out=tempsas.emp_conc_ratio_sum_0(drop=_type_ _freq_) sum= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 May 2017 17:36:01 GMT</pubDate>
    <dc:creator>Afor910327</dc:creator>
    <dc:date>2017-05-03T17:36:01Z</dc:date>
    <item>
      <title>ERROR: Expression using equals (=) has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/353698#M273900</link>
      <description>&lt;P&gt;create table tempsas.employment as&lt;/P&gt;&lt;P&gt;6939&lt;/P&gt;&lt;P&gt;6940 select cm.code_id as indCode_id, cm.code as indCode, cm.descr as indDescr, ed.period, ed.value as employment&lt;/P&gt;&lt;P&gt;6941 from dbo.def_dataView ed&lt;/P&gt;&lt;P&gt;6942 join tempsas.indCode_List cm&lt;/P&gt;&lt;P&gt;6943 on ed.code_id = cm.code_id&lt;/P&gt;&lt;P&gt;6944 where ed.period = "&amp;amp;ioyear"&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference IOYEAR not resolved.&lt;/P&gt;&lt;P&gt;6945 and ed.datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable DSNAME resolves to 'Annual15'&lt;/P&gt;&lt;P&gt;6946 and upcase(ed.classCode) = 'FTPT'&lt;/P&gt;&lt;P&gt;6947 and upcase(ed.typeCode) = 'EMP'&lt;/P&gt;&lt;P&gt;6948 order by cm.code&lt;/P&gt;&lt;P&gt;6949 ;&lt;/P&gt;&lt;P&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/P&gt;&lt;P&gt;6950&lt;/P&gt;&lt;P&gt;6951 create table tempsas.ind_comp as&lt;/P&gt;&lt;P&gt;6952&lt;/P&gt;&lt;P&gt;6953 select indCode, sum(val) as compensation&lt;/P&gt;&lt;P&gt;6954 from trn.dataView&lt;/P&gt;&lt;P&gt;6955 where period = "&amp;amp;ioyear"&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference IOYEAR not resolved.&lt;/P&gt;&lt;P&gt;6956 and upcase(substr(itmCode,1,1)) in ('W')&lt;/P&gt;&lt;P&gt;6957 and datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;SYMBOLGEN: Macro variable DSNAME resolves to 'Annual15'&lt;/P&gt;&lt;P&gt;6958 group by indCode&lt;/P&gt;&lt;P&gt;6959 order by indcode&lt;/P&gt;&lt;P&gt;6960 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone please help me out with this error? I cannot understand what I have to change...&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/353698#M273900</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2017-04-26T14:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using equals (=) has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/353700#M273901</link>
      <description>&lt;P&gt;This error seems to be very clear to me:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;ERROR: Expression using equals (=) has components that are of different data types.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Somewhere above that row you have a check where one side of the equals type (character/numeric) does not equal the other side, for example:&lt;BR /&gt;"This string" = 99&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Would not work as the left is a string and the right is a number.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suspect that this row:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;6944 where ed.period = "&amp;amp;ioyear"&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is the culprit as the warning:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;WARNING: Apparent symbolic reference IOYEAR not resolved.&lt;/P&gt;
&lt;P&gt;Tells you the macro variable IOYEAR does not exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps your missing a %let ioyear=2017; or something before that code?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 14:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/353700#M273901</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-04-26T14:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using equals (=) has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/355691#M273902</link>
      <description>&lt;P&gt;Hi RW9,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response, I do not think that I missed any %letioyear=2015 (my rear of revision).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the part of the code, I keep changing things around and no output gets succesfully created...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect to odbc as iips&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;(datasrc=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"IIPS"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;*************************************************************;&lt;/P&gt;&lt;P&gt;create table tempsas.indCode_List as&lt;/P&gt;&lt;P&gt;select * from connection to iips&lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;select *&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;from cde.getCodes(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'io'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'ind'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'NAICS07'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;order by code&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;**********************************************************************************************;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;create table tempsas.employment as&lt;/P&gt;&lt;P&gt;select cm.code_id as indCode_id, cm.code as indCode, cm.descr as indDescr, ed.period, ed.value as employment&lt;/P&gt;&lt;P&gt;from dbo.def_dataView ed&lt;/P&gt;&lt;P&gt;join tempsas.indCode_List cm&lt;/P&gt;&lt;P&gt;on ed.code_id = cm.code_id&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where ed.period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;ioyear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and ed.datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and upcase(ed.classCode) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'FTPT'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and upcase(ed.typeCode) = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'EMP'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;order by cm.code&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;create table tempsas.ind_comp as&lt;/P&gt;&lt;P&gt;select indCode, sum(val) as compensation&lt;/P&gt;&lt;P&gt;from trn.dataView&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where period = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"&amp;amp;ioyear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and upcase(substr(itmCode,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) in (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'W'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;group by indCode&lt;/P&gt;&lt;P&gt;order by indcode&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.ind_conc out=tempsas.ind_conc_xIndCode;&lt;/P&gt;&lt;P&gt;by indCode indCodeDescr;&lt;/P&gt;&lt;P&gt;data tempsas.emp_comp_conc;&lt;/P&gt;&lt;P&gt;merge tempsas.employment(in=a) tempsas.ind_comp(in=b) tempsas.ind_conc_xIndCode;&lt;/P&gt;&lt;P&gt;by indCode;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;if a=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; and b=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.emp_comp_conc out=tempsas.emp_comp_conc_sort;&lt;/P&gt;&lt;P&gt;by indACPSA indACPSADescr;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.emp_comp_conc_sort;&lt;/P&gt;&lt;P&gt;by indACPSA;&lt;/P&gt;&lt;P&gt;id indACPSADescr;&lt;/P&gt;&lt;P&gt;var employment compensation;&lt;/P&gt;&lt;P&gt;output out=tempsas.emp_comp_summary(drop=_type_ _freq_) sum= ;&lt;/P&gt;&lt;P&gt;data tempsas.emp_conc_ratio_0;&lt;/P&gt;&lt;P&gt;merge tempsas.emp_comp_summary tempsas.indACPSA_ratio_sort;&lt;/P&gt;&lt;P&gt;by indACPSA;&lt;/P&gt;&lt;P&gt;empACPSA = employment * indACPSA_ratio;&lt;/P&gt;&lt;P&gt;compACPSA = compensation * indACPSA_ratio;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.emp_conc_ratio_0;&lt;/P&gt;&lt;P&gt;var employment compensation indACPSA_ratio empACPSA compACPSA;&lt;/P&gt;&lt;P&gt;output out=tempsas.emp_conc_ratio_sum_0(drop=_type_ _freq_) sum= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2017 17:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/355691#M273902</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2017-05-03T17:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using equals (=) has components that are of different data types.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/355878#M273903</link>
      <description>&lt;P&gt;I don't know what to say further. &amp;nbsp;The warning is very clear:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;WARNING: Apparent symbolic reference IOYEAR not resolved.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The macro variable IOYEAR has not been defined - i.e. nowhere in your code - either the code you posted (please feel feel to point out where it is created as I can't see it), nor in any of your code do you have a section which either looks like:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let IOYEAR=...;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Which is how you define macro variables, or by using proc sql into clause. &amp;nbsp;None of this appears in your code. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now for the seoncd part. &amp;nbsp;As per my previous post, one of the equals conditions from:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;6943 on ed.code_id = cm.code_id&lt;/P&gt;
&lt;P&gt;6944 where ed.period = "&amp;amp;ioyear"&lt;/P&gt;
&lt;P&gt;WARNING: Apparent symbolic reference IOYEAR not resolved.&lt;/P&gt;
&lt;P&gt;6945 and ed.datasetName = &amp;amp;dsName&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable DSNAME resolves to 'Annual15'&lt;/P&gt;
&lt;P&gt;6946 and upcase(ed.classCode) = 'FTPT'&lt;/P&gt;
&lt;P&gt;6947 and upcase(ed.typeCode) = 'EMP'&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;---&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Has either:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;numeric&amp;gt;=&amp;lt;character&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;or&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;character&amp;gt;=&amp;lt;numeric&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not a mind reader here, I cannot see your computer, you will need to check each of these, you cant compare one datatype to another without converting. &amp;nbsp;If you followed the guidance on how to post a good question, you would have started by posting test data in the form of a datastep, what the output should look like and your code - then I would be able to tell you which variable exactly it is that doesn't match.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2017 08:26:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-Expression-using-equals-has-components-that-are-of/m-p/355878#M273903</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-04T08:26:34Z</dc:date>
    </item>
  </channel>
</rss>

