Log-files from scheduled jobs are being saved on the content-server. Note that this file are only a certain period available, so you've download the original logfiles before they are being deleted on the content-server. ( Of course you may save this files on an other location on the content-server)
%let base_uri=%sysfunc(getoption(SERVICESBASEURL));
filename jobrec temp;
/*this gives a list with file-uris for log-files for scheduled jobs */
proc http method=get oauth_bearer = sas_services
url="&base_uri/jobExecution/jobs?limit=300%nrstr(&filter=eq(submittedByApplication, 'jobExecution'))"
out=jobrec
;
run;
libname jobrec json;
Then you can use the file-api to retrieve the contents of a particular log-file