BookmarkSubscribeRSS Feed
shamdan
Calcite | Level 5

Hi,

 

We are currently executing stored processes on SAS 9.4 through the REST API interface provided by the SAS 9.4 BI Web Services.

 

The response from the REST service endpoint has the result of the stored process execution (pdf or dataset).  However, I have not found a way to also get the SAS log of that stored process execution.

 

Utilizing the SAS 9.2 foundation services I know it is possible to get the SAS log of the execution of the stored process in the same result object, as we have done it before.  What is the corresponding way to get the log through the REST BI Web Services?

 

Thanks,

Sameer 

2 REPLIES 2
J_Fredlund
Fluorite | Level 6
Include "proc printto log='alternate-log-file'; run;" at the end of your stored process to direct the log to an external file. I include the execution time, and user name as part of the file name.
chithra
Quartz | Level 8
Hi,

By using Proc printto will help you to get the log for the programme, which we can say application log.
If you are running the stored process in a stored process server or workspace server the server log will be automatically generated in the log path of stored processserver.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1100 views
  • 0 likes
  • 3 in conversation