Writing into SAS log

sas

Solution

Use `%sysfunc()` to evaluate a function during macro resolution.

IE

%let x=1;
%put %sysfunc(probnorm(&x));

Problem

I know I can use `%PUT` to write a text string in the log window, but what if I want to write in the log the result of a function, for example `PROBNORM(x)`? Is there a way to do that?

Original source