08-21-2014 02:14 PM
I'm not sure if this is a bug, or if I'm not understanding how the intnx() function works with %sysfunc.
Method 1, using %sysfunc, spits out the error
"WARNING: An argument to the function INTNX referenced by the %SYSFUNC or %QSYSFUNC macro
function is out of range.
NOTE: Mathematical operations could not be performed during %SYSFUNC function execution. The
result of the operations have been set to a missing value."
Methods 2 and 3 output correctly within a data _null_ step.
If anyone could help enlighten me on why %sysfunc fails here, I would be really grateful.
/* method 1 */
%put x=&x y1=&y1;
/* method 2 */
put "y2=" y2;
/* method 3*/
call symput('y3', intnx('qtr.2',&x,-9,'b'));
08-21-2014 02:43 PM
Thanks for the helpful emails!
The following solution for method 1 worked, by removing all quotes, and enclosing &x with another %sysfunc() for &x.
Need further help from the community? Please ask a new question.