Hello I've written this code (bellow) from sas learning I got this error I do not understand it.
proc fcmp outlib=sasuser.funcs.trial;
function study_day(intervention_date, event_date);
n = event_date - intervention_date;
if n >= 0 then
n = n + 1;
return (n);
endsub;
options cmplib=sasuser.funcs;
Are you sure you have write access rights to the SASUSER library?
Please try with the WORK library or any user defined library:
proc fcmp outlib=work.funcs.trial;
function study_day(intervention_date, event_date);
n = event_date - intervention_date;
if n >= 0 then
n = n + 1;
return (n);
endsub;
options cmplib=work.funcs;
Hi,
maybe try:
proc fcmp outlib=WORK.funcs.trial;
?
All the best
Bart
Are you sure you have write access rights to the SASUSER library?
Please try with the WORK library or any user defined library:
proc fcmp outlib=work.funcs.trial;
function study_day(intervention_date, event_date);
n = event_date - intervention_date;
if n >= 0 then
n = n + 1;
return (n);
endsub;
options cmplib=work.funcs;
This should be the problem, I do not have acces.
Thanks
You're welcome @imlearningsas !
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.