03-07-2012 05:26 AM
Reghell X command
Actually i want to execute sheel script if the day=6
i am doing like this
If i keep like this is was working on all the days acutally &day i my macro variable
from a dataset it was not resoving properly how can i do it.
03-07-2012 05:41 AM
My_SAS since the comparison is onmacro variable the condition should be macr condition and would involve macr if condition:-
03-07-2012 11:30 AM
X statment cannot be executed from in a datastep. It can be executed conditionally through a macro as shown above.
In a datastep, use call system, or call execute with the x command inside.
if &day=6 then do;
call execute('x /path/to/old.sh');