The error "The SAS log is unobtainable" occurs when you run a SAS® Stored Process


When you run a SAS Stored Process, you might receive the following error message when you run the SAS Stored Process using SAS® Enterprise Guide®:

An error occurred executing the stored process job "<stored process name>". The stored process library failed to retrieve the log. [Error] STP: The SAS log is unobtainable.

This problem occurs when the source code contains UTF–8 characters and the source code file is not saved in UTF–8 encoding.

If you run the SAS Stored Process using the SAS Stored Process web application, then you might receive the following error message:

Stored Process Error Error obtaining SAS log. STP: The SAS log is unobtainable.

In addition, if you turn on verbose logging for the SAS Stored Process Server (or for the SAS Workspace Server, if the SAS Stored Process is running on that server), then the log file might contain the following error message:

Some code points did not transcode

This message is associated with a line of code that contains UTF–8 characters that cannot be transcoded.

When you encounter this problem, you need to save your SAS Stored Process source-code files in UTF–8 encoding.

If you save your SAS Stored Process source-code files in Linux or other UNIX operating environments, you can use the file command to display information about the file encoding.

Example

> file test1.sas