<?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: Regarding Error in SAS Macros in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Regarding-Error-in-SAS-Macros/m-p/185098#M2223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're trying to call a macro from within a data step and use values from the data step then you need to use call execute instead of %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the second example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, create a text string that has the %_cuts(...) and then pass that to call execute. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 04:33:23 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-02-27T04:33:23Z</dc:date>
    <item>
      <title>Regarding Error in SAS Macros</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Regarding-Error-in-SAS-Macros/m-p/185097#M2222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All ,&lt;/P&gt;&lt;P&gt;I'm getting the error in the following macros please can anyone&amp;nbsp; able to give any solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i attached screen shot also for your reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ANil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data finfage; merge _cinage (in=a) crefage (in=b); by sex _agecat;&amp;nbsp; if a;&lt;/P&gt;&lt;P&gt;326&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ageint = _agemos2-_agemos1; dage=agemos- _agemos1;&lt;/P&gt;&lt;P&gt;327&lt;/P&gt;&lt;P&gt;328&amp;nbsp; array l0&amp;nbsp; _llg&amp;nbsp; _mlg&amp;nbsp; _slg&amp;nbsp; _lht&amp;nbsp; _mht&amp;nbsp; _sht&amp;nbsp; _lwt&amp;nbsp; _mwt&amp;nbsp; _swt _lhc&amp;nbsp; _mhc&amp;nbsp; _shc&amp;nbsp; _lbmi&lt;/P&gt;&lt;P&gt;328! _mbmi&amp;nbsp; _sbmi;&lt;/P&gt;&lt;P&gt;329&amp;nbsp; array l1 _llg1 _mlg1 _slg1 _lht1 _mht1 _sht1 _lwt1 _mwt1 _swt1 _lhc1 _mhc1 _shc1 _lbmi1&lt;/P&gt;&lt;P&gt;329! _mbmi1 _sbmi1;&lt;/P&gt;&lt;P&gt;330&amp;nbsp; array l2 _llg2 _mlg2 _slg2 _lht2 _mht2 _sht2 _lwt2 _mwt2 _swt2 _lhc2 _mhc2 _shc2 _lbmi2&lt;/P&gt;&lt;P&gt;330! _mbmi2 _sbmi2;&lt;/P&gt;&lt;P&gt;331&amp;nbsp; do over l0; l0= l1 + (dage * (l2 - l1)) / ageint; end;&lt;/P&gt;&lt;P&gt;332&lt;/P&gt;&lt;P&gt;333&amp;nbsp; if agemos &amp;lt; 24 then _mbmi=.; *theres a valid value for 23.5 months! ;&lt;/P&gt;&lt;P&gt;334&lt;/P&gt;&lt;P&gt;335&amp;nbsp; %_zscore(length, _llg, _mlg, _slg, lgz, lgpct, _Flenz);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro _ZSCORE not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;336&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_cuts(_flenz, _bivlg, -5, 3);&lt;/P&gt;&lt;P&gt;337&amp;nbsp; %_zscore(height, _lht, _mht, _sht, stz, stpct, _Fstatz);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro _ZSCORE not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;338&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_cuts(_fstatz, _bivst, -5, 3);&lt;/P&gt;&lt;P&gt;339&amp;nbsp; %_zscore(weight, _lwt, _mwt, _swt, waz, wapct, _Fwaz);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro _ZSCORE not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;340&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_cuts(_fwaz, _bivwt, -5, 5);&lt;/P&gt;&lt;P&gt;341&amp;nbsp; %_zscore(headcir, _lhc, _mhc, _shc, headcz, headcpct, _Fheadcz);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro _ZSCORE not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;342&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %_cuts(_fheadcz, _bivhc, -5, 5);&lt;/P&gt;&lt;P&gt;343&amp;nbsp; %_zscore(bmi, _lbmi, _mbmi, _sbmi, bmiz, bmipct, _Fbmiz);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/P&gt;&lt;P&gt;WARNING: Apparent invocation of macro _ZSCORE not resolved.&lt;/P&gt;&lt;P&gt;ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 04:06:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Regarding-Error-in-SAS-Macros/m-p/185097#M2222</guid>
      <dc:creator>anilgvdbm</dc:creator>
      <dc:date>2015-02-27T04:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Error in SAS Macros</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Regarding-Error-in-SAS-Macros/m-p/185098#M2223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're trying to call a macro from within a data step and use values from the data step then you need to use call execute instead of %.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the second example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, create a text string that has the %_cuts(...) and then pass that to call execute. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 04:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Regarding-Error-in-SAS-Macros/m-p/185098#M2223</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-02-27T04:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding Error in SAS Macros</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Regarding-Error-in-SAS-Macros/m-p/185099#M2224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error message is saying that the macro that is being called is not defined.&lt;/P&gt;&lt;P&gt;Is this code you wrote yourself?&amp;nbsp; Where is the code that defines the macro?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 04:40:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Regarding-Error-in-SAS-Macros/m-p/185099#M2224</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-02-27T04:40:41Z</dc:date>
    </item>
  </channel>
</rss>

