Usage Note 68534: A "Fileref Deassign Failure for _WEBOUT" message appears in the SAS® Stored Process Server log file
The following error appears in the SAS Stored Process Server log file after a stored process completes execution:
Fileref Deassign Failure for _WEBOUT
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.
Scenario 1
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:
data _null_;
rc = stpsrv_header('Content-type',"text/xml");
length rec $4096;
filein = fopen('response','I',4096,'B');
fileid = fopen('_WEBOUT','O',4096,'B');
rec = " ";
do while(fread(filein)=0);
rc = fget(filein,rec,4096);
rc = fput(fileid,rec);
rc = fwrite(fileid);
end;
/* Use the FCLOSE function to close the _WEBOUT fileref */
rc = fclose(fileid);
run;
Scenario 2
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:
%stpbegin;
proc print data=sashelp.cars;
run;
/* Include the %STPEND macro to close the _WEBOUT fileref */
%stpend;
Scenario 3
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:
ods html file=_webout;
proc print data=sashelp.air;
run;
/* Use the appropriate ODS statement to close the _WEBOUT fileref; this example uses the HTML destination */
ods html close;
Operating System and Release Information
SAS System | SAS Integration Technologies | z/OS | | |
z/OS 64-bit | | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | | |
Microsoft Windows XP 64-bit Edition | | |
Microsoft® Windows® for x64 | | |
Microsoft Windows 8 Enterprise 32-bit | | |
Microsoft Windows 8 Enterprise x64 | | |
Microsoft Windows 8 Pro 32-bit | | |
Microsoft Windows 8 Pro x64 | | |
Microsoft Windows 8.1 Enterprise 32-bit | | |
Microsoft Windows 8.1 Enterprise x64 | | |
Microsoft Windows 8.1 Pro 32-bit | | |
Microsoft Windows 8.1 Pro x64 | | |
Microsoft Windows 10 | | |
Microsoft Windows 95/98 | | |
Microsoft Windows 2000 Advanced Server | | |
Microsoft Windows 2000 Datacenter Server | | |
Microsoft Windows 2000 Server | | |
Microsoft Windows 2000 Professional | | |
Microsoft Windows NT Workstation | | |
Microsoft Windows Server 2003 Datacenter Edition | | |
Microsoft Windows Server 2003 Enterprise Edition | | |
Microsoft Windows Server 2003 Standard Edition | | |
Microsoft Windows Server 2003 for x64 | | |
Microsoft Windows Server 2008 | | |
Microsoft Windows Server 2008 R2 | | |
Microsoft Windows Server 2008 for x64 | | |
Microsoft Windows Server 2012 Datacenter | | |
Microsoft Windows Server 2012 R2 Datacenter | | |
Microsoft Windows Server 2012 R2 Std | | |
Microsoft Windows Server 2012 Std | | |
Microsoft Windows Server 2016 | | |
Microsoft Windows Server 2019 | | |
Microsoft Windows XP Professional | | |
Windows 7 Enterprise 32 bit | | |
Windows 7 Enterprise x64 | | |
Windows 7 Home Premium 32 bit | | |
Windows 7 Home Premium x64 | | |
Windows 7 Professional 32 bit | | |
Windows 7 Professional x64 | | |
Windows 7 Ultimate 32 bit | | |
Windows 7 Ultimate x64 | | |
Windows Millennium Edition (Me) | | |
Windows Vista | | |
Windows Vista for x64 | | |
64-bit Enabled AIX | | |
64-bit Enabled HP-UX | | |
64-bit Enabled Solaris | | |
AIX | | |
HP-UX | | |
HP-UX IPF | | |
Linux | | |
Linux for x64 | | |
Linux on Itanium | | |
OpenVMS Alpha | | |
OpenVMS on HP Integrity | | |
Solaris | | |
Solaris for x64 | | |
Tru64 UNIX | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2021-10-22 15:51:58 |
Date Created: | 2021-10-21 09:16:29 |