<?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: The INPUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/The-INPUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC-macro/m-p/402739#M97830</link>
    <description>&lt;P&gt;What is in &amp;amp;IOYEAR that you need to apply any functions at all?&amp;nbsp; Can't you just use:&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 13:25:59 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2017-10-10T13:25:59Z</dc:date>
    <item>
      <title>The INPUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-INPUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC-macro/m-p/402734#M97827</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting this error below on my %sysfunc part, does anyone know what is going on?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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;&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;(input(&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;(input(&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:18:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-INPUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC-macro/m-p/402734#M97827</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2017-10-10T13:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: The INPUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-INPUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC-macro/m-p/402739#M97830</link>
      <description>&lt;P&gt;What is in &amp;amp;IOYEAR that you need to apply any functions at all?&amp;nbsp; Can't you just use:&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 13:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-INPUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC-macro/m-p/402739#M97830</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-10-10T13:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: The INPUT function referenced in the %SYSFUNC or %QSYSFUNC macro function is not found</title>
      <link>https://communities.sas.com/t5/SAS-Programming/The-INPUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC-macro/m-p/402741#M97832</link>
      <description>&lt;P&gt;The input() function is one of those not available with %sysfunc and %qsysfunc (see &lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=p1o13d7wb2zfcnn19s5ssl2zdxvi.htm&amp;amp;locale=de#n0x97dl6jtc5ujn1iowwm5bp8p4m" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=mcrolref&amp;amp;docsetTarget=p1o13d7wb2zfcnn19s5ssl2zdxvi.htm&amp;amp;locale=de#n0x97dl6jtc5ujn1iowwm5bp8p4m&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;It's also not necessary, as the macro language has only one data type, text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So your condition should just read:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;and &amp;amp;ioyear. - oiv.period = 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so if macro variable ioyear contains 2017, the macro preprocessor will render&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;and 2017 - oiv.period = 1&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 13:27:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/The-INPUT-function-referenced-in-the-SYSFUNC-or-QSYSFUNC-macro/m-p/402741#M97832</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-10-10T13:27:02Z</dc:date>
    </item>
  </channel>
</rss>

