<?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 subtraction (-) requires numeric types. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402860#M66862</link>
    <description>&lt;P&gt;Convert the character one to numeric using INPUT.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2017 17:20:07 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-10-10T17:20:07Z</dc:date>
    <item>
      <title>ERROR: Expression using subtraction (-) requires numeric types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402852#M66859</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I keeping getting this error message below, I do not know why that comes up, oiv. and riv. are numberical, is there any way to make the sysfunc below numerical?&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(inputn(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&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;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) - oiv.period = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(inputn(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&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;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) - riv.period = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Expression using subtraction (-) requires numeric types.&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;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &lt;STRONG&gt;&lt;I&gt;prep_series&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; ioyear = &amp;amp;b_ioYear &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%to&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; &amp;amp;e_ioyear;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;**************************************************************************************************************;&lt;/P&gt;&lt;P&gt;******************************* Item concordance weight update **********************************************;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;This section updates the weights in the item concordance for the item partials. Some of the itemCodes have weights&lt;/P&gt;&lt;P&gt;that change from year to year. To incorporate those into the ACPSA, the item concordance needs to be changed for&lt;/P&gt;&lt;P&gt;each processing year. The weights that don't change will remain as they were but the ones that do change will&lt;/P&gt;&lt;P&gt;be updated.&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;***************************************************************************************************************;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;data tempsas.current_item_concordance;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;set &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;concord.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;acpsaitemcc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.current_item_concordance out=tempsas.current_item_concordance_sort;&lt;/P&gt;&lt;P&gt;by itemCode itemACPSA;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data tempsas.itemACPSA_partial_combine_0;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;length itemCode $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;20&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; itemDescr $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;300&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSA $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;9&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSADescr $ &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;90&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;set tempsas.itemACPSA_23 tempsas.itemACPSA_3X tempsas.itemACPSA_51 tempsas.itemACPSA_54 tempsas.itemACPSA_56 tempsas.itemACPSA_61 tempsas.itemACPSA_71 tempsas.itemACPSA_81 tempsas.itemACPSA_99;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where upcase(isInterp) ne &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'Y'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;format itemCode &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$20.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; itemDescr &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$300.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSA &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$9.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; itemACPSADescr &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$90.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;data tempsas.itemACPSA_partial_combine;&lt;/P&gt;&lt;P&gt;set tempsas.itemACPSA_partial_combine_0 tempsas.itemACPSA_Interp;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.itemACPSA_partial_combine out=tempsas.itemACPSA_partial_combine_sort;&lt;/P&gt;&lt;P&gt;by itemCode itemACPSA;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.current_item_concordance_sort;&lt;/P&gt;&lt;P&gt;by itemCode;&lt;/P&gt;&lt;P&gt;id itemDescr;&lt;/P&gt;&lt;P&gt;var weight;&lt;/P&gt;&lt;P&gt;output out=tempsas.current_item_concordance_sum(drop=_type_) sum= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;/* itemCode weight check */&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.itemACPSA_partial_combine_sort;&lt;/P&gt;&lt;P&gt;by itemCode;&lt;/P&gt;&lt;P&gt;id itemDescr;&lt;/P&gt;&lt;P&gt;var y1997 - y2014;&lt;/P&gt;&lt;P&gt;output out=tempsas.itemACPSA_partial_summary(drop=_type_) sum= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data tempsas.partial_item_ACPSA&lt;/P&gt;&lt;P&gt;tempsas.partial_all_other&lt;/P&gt;&lt;P&gt;tempsas.no_update (keep=itemCode_id itemCode itemDescr partial weight itemACPSA itemACPSADescr);&lt;/P&gt;&lt;P&gt;merge tempsas.current_item_concordance_sort(in=a) tempsas.itemACPSA_partial_combine_sort (in=b);&lt;/P&gt;&lt;P&gt;by itemCode;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;if 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; and itemACPSA ne &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'item99'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; then output tempsas.partial_item_ACPSA;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;else if 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; and itemACPSA = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'item99'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; then output tempsas.partial_all_other;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;else output tempsas.no_update;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data tempsas.partial_item_ACPSA_format;&lt;/P&gt;&lt;P&gt;set tempsas.partial_item_ACPSA;&lt;/P&gt;&lt;P&gt;weight = y&amp;amp;ioyear;&lt;/P&gt;&lt;P&gt;keep itemCode_id itemCode itemDescr partial weight itemACPSA itemACPSADescr;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.partial_item_ACPSA_format out=tempsas.partial_item_ACPSA_sort;&lt;/P&gt;&lt;P&gt;by itemCode_id itemCode;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.partial_item_ACPSA_sort;&lt;/P&gt;&lt;P&gt;by itemCode_id itemCode;&lt;/P&gt;&lt;P&gt;id itemDescr;&lt;/P&gt;&lt;P&gt;var weight;&lt;/P&gt;&lt;P&gt;output out=tempsas.partial_item_ACPSA_summary(drop=_type_) sum=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data tempsas.partial_ACPSA_sum1&lt;/P&gt;&lt;P&gt;tempsas.partial_ACPSA_not1;&lt;/P&gt;&lt;P&gt;set tempsas.partial_item_ACPSA_summary;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;if weight &amp;lt; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0.999&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; then output tempsas.partial_ACPSA_not1;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;else output tempsas.partial_ACPSA_sum1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.partial_ACPSA_not1 out=tempsas.partial_ACPSA_not1_sort;&lt;/P&gt;&lt;P&gt;by itemCode_id itemCode;&lt;/P&gt;&lt;P&gt;data tempsas.partial_not1_adj;&lt;/P&gt;&lt;P&gt;merge tempsas.partial_ACPSA_not1_sort(in=a rename=(weight=total_weight)) tempsas.partial_item_ACPSA_sort;&lt;/P&gt;&lt;P&gt;by itemCode_id;&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;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;weight = &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; - total_weight;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;itemACPSA = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'item99'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;itemACPSADescr = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'All Other Commodities'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;drop _freq_ total_weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.partial_not1_adj out=tempsas.partial_not1_adj_sort;&lt;/P&gt;&lt;P&gt;by itemCode_id itemCode itemDescr partial weight itemACPSA itemACPSADescr;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.partial_not1_adj_sort;&lt;/P&gt;&lt;P&gt;by itemCode_id itemCode itemDescr partial weight itemACPSA itemACPSADescr;&lt;/P&gt;&lt;P&gt;output out=tempsas.partial_not1_correction(drop=_type_ _freq_);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data tempsas.partial_ACPSA_remerge;&lt;/P&gt;&lt;P&gt;set tempsas.partial_item_ACPSA_format tempsas.partial_not1_correction;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;***************** Checks the sum of partial ACPSA items. Weights should sum to 1. **************;&lt;/P&gt;&lt;P&gt;data tempsas.all_partials_remerged;&lt;/P&gt;&lt;P&gt;set tempsas.partial_ACPSA_remerge;&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.all_partials_remerged out=tempsas.all_partials_remerged_sort;&lt;/P&gt;&lt;P&gt;by itemCode;&lt;/P&gt;&lt;P&gt;proc summary data=tempsas.all_partials_remerged_sort;&lt;/P&gt;&lt;P&gt;by itemCode;&lt;/P&gt;&lt;P&gt;id itemDescr;&lt;/P&gt;&lt;P&gt;var weight;&lt;/P&gt;&lt;P&gt;output out=tempsas.partial_ACPSA_sum_check(drop=_type_ _freq_) sum= ;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;run; &lt;/FONT&gt;&lt;FONT color="#008000" face="Courier New" size="2"&gt;/*sbo 9.2.2016 - Check works for 2012 */&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;proc print data=tempsas.partial_ACPSA_sum_check noobs;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;title3 &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"Partial ACPSA item weight check, &amp;amp;ioYear"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;TITLE4 &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"%sysfunc(today(),weekdate.), %sysfunc(time(),time8.)"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;var itemCode weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;****************************************************************************;&lt;/P&gt;&lt;P&gt;data tempsas.new_item_conc;&lt;/P&gt;&lt;P&gt;set tempsas.partial_ACPSA_remerge tempsas.no_update;&lt;/P&gt;&lt;P&gt;itemACPSADescr = propcase(itemACPSADescr);&lt;/P&gt;&lt;P&gt;proc sort data=tempsas.new_item_conc out=tempsas.new_item_conc_sort;&lt;/P&gt;&lt;P&gt;by itemCode itemACPSA;&lt;/P&gt;&lt;P&gt;*******************************************************************************************;&lt;/P&gt;&lt;P&gt;/* Check on new concordance to make sure weights sum to 1 */&lt;/P&gt;&lt;P&gt;proc summary data = tempsas.new_item_conc_sort;&lt;/P&gt;&lt;P&gt;by itemCode;&lt;/P&gt;&lt;P&gt;id itemDescr;&lt;/P&gt;&lt;P&gt;var weight;&lt;/P&gt;&lt;P&gt;output out=tempsas.new_item_conc_summary(drop=_type_ _freq_) sum= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data tempsas.good_conc&lt;/P&gt;&lt;P&gt;tempsas.bad_conc;&lt;/P&gt;&lt;P&gt;set tempsas.new_item_conc_summary;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;if weight ne &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; then output tempsas.bad_conc;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;else output tempsas.good_conc;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;******************************************************************************************&lt;/P&gt;&lt;P&gt;*****************************************************************************************************&lt;/P&gt;&lt;P&gt;ACPSA item concordance&lt;/P&gt;&lt;P&gt;*****************************************************************************************************;&lt;/P&gt;&lt;P&gt;data tempsas.item_conc;&lt;/P&gt;&lt;P&gt;set tempsas.new_item_conc_sort;&lt;/P&gt;&lt;P&gt;itemACPSADescr = propcase(itemACPSADescr);&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;The following program creates three tables for used in calculating Laspeyres and Pasche quantity and price&lt;/P&gt;&lt;P&gt;indices. The methodology follows that of a program written by Gabriel Medeiros to calculate prices for annual&lt;/P&gt;&lt;P&gt;IO.&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table tempsas.temp_PI_&amp;amp;ioYear as&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;select riv.itmCode_id as item_id label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"item_id"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.itmCode as itemCode label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemCode"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.period as ioYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"ioYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.basePeriod as basingYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"basingYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.pRelGO as PI label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"PI"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;, oiv.bas * ic.weight as basicVal&lt;/P&gt;&lt;P&gt;, oiv.ctx * ic.weight as comTax&lt;/P&gt;&lt;P&gt;, ic.itemACPSA&lt;/P&gt;&lt;P&gt;, ic.itemACPSADescr&lt;/P&gt;&lt;P&gt;from sql_iips.rel_itmView riv&lt;/P&gt;&lt;P&gt;join sql_iips.out_itmView oiv&lt;/P&gt;&lt;P&gt;on riv.itmCode_id = oiv.itmCode_id&lt;/P&gt;&lt;P&gt;and riv.datasetPeriod_id = oiv.datasetPeriod_id&lt;/P&gt;&lt;P&gt;and riv.dataSet_id = oiv.dataSet_id&lt;/P&gt;&lt;P&gt;join tempsas.item_conc ic&lt;/P&gt;&lt;P&gt;on riv.itmCode_id = ic.itemCode_id&lt;/P&gt;&lt;P&gt;where riv.datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and riv.valType = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'DOM'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and oiv.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 riv.period = &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioYear.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;select riv.itmCode_id as item_id label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"item_id"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.itmCode as itemCode label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemCode"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.period as ioYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"ioYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.basePeriod as basingYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"basingYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, riv.pRelGO as PI label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"PI"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;, oiv.bas * ic.weight as basicVal&lt;/P&gt;&lt;P&gt;, oiv.ctx * ic.weight as comTax&lt;/P&gt;&lt;P&gt;, ic.itemACPSA&lt;/P&gt;&lt;P&gt;, ic.itemACPSADescr&lt;/P&gt;&lt;P&gt;from sql_iips.rel_itmView riv&lt;/P&gt;&lt;P&gt;join sql_iips.out_itmView oiv&lt;/P&gt;&lt;P&gt;on riv.itmCode_id = oiv.itmCode_id&lt;/P&gt;&lt;P&gt;and riv.datasetPeriod_id = oiv.datasetPeriod_id&lt;/P&gt;&lt;P&gt;and riv.dataSet_id = oiv.dataSet_id&lt;/P&gt;&lt;P&gt;join tempsas.item_conc ic&lt;/P&gt;&lt;P&gt;on riv.itmCode_id = ic.itemCode_id&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where riv.datasetName = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'ANNUAL14'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and riv.valType = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'DOM'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and oiv.period not in (select distinct period from sql_iips.out_itmView where datasetName = &amp;amp;dsName)&lt;/P&gt;&lt;P&gt;and riv.period not in (select distinct period from sql_iips.rel_itmView where datasetName = &amp;amp;dsName)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(inputn(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&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;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) - oiv.period = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(inputn(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&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;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) - riv.period = &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;create table tempsas.PI_&amp;amp;ioYear as&lt;/P&gt;&lt;P&gt;select item_id&lt;/P&gt;&lt;P&gt;, itemCode&lt;/P&gt;&lt;P&gt;, ioYear&lt;/P&gt;&lt;P&gt;, basingYear&lt;/P&gt;&lt;P&gt;, PI&lt;/P&gt;&lt;P&gt;, basicVal&lt;/P&gt;&lt;P&gt;, comTax&lt;/P&gt;&lt;P&gt;, itemACPSA&lt;/P&gt;&lt;P&gt;, itemACPSADescr&lt;/P&gt;&lt;P&gt;from tempsas.temp_PI_&amp;amp;ioYear&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select tpi.item_id&lt;/P&gt;&lt;P&gt;, tpi.itemCode&lt;/P&gt;&lt;P&gt;, tpi.ioYear&lt;/P&gt;&lt;P&gt;, tpi.basingYear&lt;/P&gt;&lt;P&gt;, tpi.PI&lt;/P&gt;&lt;P&gt;, sum(tpi.basicVal) as basicVal&lt;/P&gt;&lt;P&gt;, sum(tpi.comTax) as comTax&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, sc.sumACPSA as itemACPSA label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemACPSA"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, sc.sumACPSADescr as itemACPSADescr label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemACPSADescr"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;from tempsas.temp_PI_&amp;amp;ioYear tpi&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;join &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;concord.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;summaryConc sc&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;on tpi.itemACPSA = sc.itemACPSA&lt;/P&gt;&lt;P&gt;group by tpi.item_id, tpi.itemCode, tpi.ioYear, tpi.basingYear, tpi.PI, sc.sumACPSA, sc.sumACPSADescr&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;create table tempsas.PI2_&amp;amp;ioYear as&lt;/P&gt;&lt;P&gt;select item_id,&lt;/P&gt;&lt;P&gt;itemcode,&lt;/P&gt;&lt;P&gt;ioyear,&lt;/P&gt;&lt;P&gt;basingyear,&lt;/P&gt;&lt;P&gt;pi,&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;(basicVal/pi) as basicVal label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"basicVal"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;(comtax/pi) as comtax label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"comTax"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;itemACPSA,&lt;/P&gt;&lt;P&gt;itemACPSADescr&lt;/P&gt;&lt;P&gt;from tempsas.pi_&amp;amp;ioYear&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;create table tempsas.temp_output_&amp;amp;ioYear as&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;select oiv.itmCode_id as item_id label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"item_id"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, oiv.itmCode as itemCode label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemCode"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, oiv.prdnbr as ioYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"ioYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, oiv.prdnbr as basingYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"basingYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&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.0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; as PI&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;, oiv.bas * ic.weight as basicVal&lt;/P&gt;&lt;P&gt;, oiv.ctx * ic.weight as comTax&lt;/P&gt;&lt;P&gt;, ic.itemACPSA&lt;/P&gt;&lt;P&gt;, ic.itemACPSADescr&lt;/P&gt;&lt;P&gt;from sql_iips.out_itmView oiv&lt;/P&gt;&lt;P&gt;join tempsas.item_conc ic&lt;/P&gt;&lt;P&gt;on oiv.itmCode_id = ic.itemCode_id&lt;/P&gt;&lt;P&gt;where oiv.datasetName = &amp;amp;dsName&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and oiv.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;union&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;select oiv.itmCode_id as item_id label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"item_id"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, oiv.itmCode as itemCode label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemCode"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, oiv.prdnbr as ioYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"ioYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, oiv.prdnbr as basingYear label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"basingYear"&lt;/FONT&gt;&lt;/P&gt;&lt;P&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.0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt; as PI&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;, oiv.bas * ic.weight as basicVal&lt;/P&gt;&lt;P&gt;, oiv.ctx * ic.weight as comTax&lt;/P&gt;&lt;P&gt;, ic.itemACPSA&lt;/P&gt;&lt;P&gt;, ic.itemACPSADescr&lt;/P&gt;&lt;P&gt;from sql_iips.out_itmView oiv&lt;/P&gt;&lt;P&gt;join tempsas.item_conc ic&lt;/P&gt;&lt;P&gt;on oiv.itmCode_id = ic.itemCode_id&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;where oiv.datasetName = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'ANNUAL14'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and oiv.period not in (select distinct period from sql_iips.out_itmView where datasetName = &amp;amp;dsName)&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; - oiv.prdnbr = &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;create table tempsas.output_&amp;amp;ioYear as&lt;/P&gt;&lt;P&gt;select item_id&lt;/P&gt;&lt;P&gt;, itemCode&lt;/P&gt;&lt;P&gt;, ioYear&lt;/P&gt;&lt;P&gt;, basingYear&lt;/P&gt;&lt;P&gt;, PI&lt;/P&gt;&lt;P&gt;, basicVal&lt;/P&gt;&lt;P&gt;, comTax&lt;/P&gt;&lt;P&gt;, itemACPSA&lt;/P&gt;&lt;P&gt;, itemACPSADescr&lt;/P&gt;&lt;P&gt;from tempsas.temp_output_&amp;amp;ioYear&lt;/P&gt;&lt;P&gt;union&lt;/P&gt;&lt;P&gt;select a.item_id&lt;/P&gt;&lt;P&gt;, a.itemCode&lt;/P&gt;&lt;P&gt;, a.ioYear&lt;/P&gt;&lt;P&gt;, a.basingYear&lt;/P&gt;&lt;P&gt;, a.PI&lt;/P&gt;&lt;P&gt;, sum(a.basicVal) as basicVal&lt;/P&gt;&lt;P&gt;, sum(a.comTax) as comTax&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, sc.sumACPSA as itemACPSA label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemACPSA"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;, sc.sumACPSADescr as itemACPSADescr label=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"itemACPSADescr"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;from tempsas.temp_output_&amp;amp;ioYear a&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;join &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;concord.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;summaryConc sc&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;on a.itemACPSA = sc.itemACPSA&lt;/P&gt;&lt;P&gt;group by a.item_id, a.itemCode, a.ioYear, a.basingYear, a.PI, sc.sumACPSA, sc.sumACPSADescr&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; prep_series;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;prep_series&lt;/I&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402852#M66859</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2017-10-10T17:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using subtraction (-) requires numeric types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402856#M66860</link>
      <description>&lt;P&gt;Macro variables are always text and there isn't a numerical/character component to them. As long as the expression is valid it's fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suspect the error is somewhere else.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that OIV and RIV refer to the data source, not a variable, so they cannot be numeric as you've stated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and oiv.period =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#800080"&gt;"&amp;amp;ioYear" -&amp;gt; oiv.period is character&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and riv.period = &amp;amp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;ioYear. -&amp;gt; riv.period is stored as a numeric.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:07:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402856#M66860</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-10T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using subtraction (-) requires numeric types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402859#M66861</link>
      <description>&lt;P&gt;Thanks Reeza, so how can I correct this part:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(inputn(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&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;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) - oiv.period = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;%sysfunc&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;(inputn(&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&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;8.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;)) - riv.period = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I do not get errors? Is there a way to correct this?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:17:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402859#M66861</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2017-10-10T17:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using subtraction (-) requires numeric types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402860#M66862</link>
      <description>&lt;P&gt;Convert the character one to numeric using INPUT.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:20:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402860#M66862</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-10T17:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using subtraction (-) requires numeric types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402863#M66863</link>
      <description>&lt;P&gt;Someone mentioned earlier this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; - oiv.period = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&amp;amp;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;ioyear.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; - riv.period = &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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At any rate, %SYSFUNC cannot be used with INPUT.&amp;nbsp; You would have to switch to INPUTN or INPUTC instead.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402863#M66863</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2017-10-10T17:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using subtraction (-) requires numeric types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402866#M66865</link>
      <description>&lt;P&gt;I get this error now:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: The INPUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402866#M66865</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2017-10-10T17:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Expression using subtraction (-) requires numeric types.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402870#M66866</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt;and &amp;amp;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;ioyear.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- input(oiv.period, 4.) =&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="2" color="#008080"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/ERROR-Expression-using-subtraction-requires-numeric-types/m-p/402870#M66866</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-10-10T17:31:30Z</dc:date>
    </item>
  </channel>
</rss>

