The following error appears in the SAS Stored Process Server log file after a stored process completes execution:
The error indicates that the _WEBOUT fileref was not properly closed at the end of the stored process. The most common scenarios that result in this error are outlined below—the parts of the code that are commented provide examples of the code that can be added to prevent the error from occurring.
The stored process source code uses the FOPEN function to open the _WEBOUT fileref but fails to properly close the fileref with the FCLOSE function.
Here is an example:
The stored process source code uses the %STPBEGIN macro but does not include the %STPEND macro that closes the _WEBOUT fileref.
Here is an example:
The stored process source code uses ODS statements that write to _WEBOUT but does not include the correct ODS statement to close the output destination.
Here is an example: