Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Writing into SAS log

Tags:

sas

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?

like image 831
Egodym Avatar asked Nov 24 '25 01:11

Egodym


1 Answers

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

IE

%let x=1;
%put %sysfunc(probnorm(&x));
like image 183
DomPazz Avatar answered Nov 25 '25 21:11

DomPazz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!