Usage Note 13599: "ERROR: File is in use" message when running a Stored Process
When running the Stored Process Server and executing a Stored Process
using the %STPBEGIN macro or ODS statements and also attempting to
explicitly write to "_webout", you will receive the following error
message in your SAS log file:
ERROR: File is in use, .
If you have a SAS DATA step that explicitly writes to "_webout", you can
eliminate this problem by not enclosing the DATA step with %STPBEGIN and
%STPEND statements or ODS statements.
The example below illustrates a scenario that would cause the problem.
%stpbegin;
data _null_;
file _webout;
put '<HTML>';
put '<H1>Hello World</H1>';
put '</HTML>';
run;
%stpend;
You can eliminate the problem by removing the "%STPBEGIN;" and
"%STPEND;" statements.
The same error message will occur if you use ODS rather than the
%stpbegin macro. For example, the below code will cause the same error
message.
ods html body=_webout;
data _null_;
file _webout;
put '<HTML>';
put '<H1>Hello World</H1>';
put '</HTML>';
run;
ods html close;
If you are using Enterprise Guide 3, then you need to deselect
"Include macros" for your stored process by following these steps.
1.) In Enterprise Guide, click on the Stored Process to
be executed.
2.) On the "Stored Process Manager" screen, select
"Execution Environment."
3.) On the "Execution Environment" screen, click the
"Preview code" selection in the lower left hand
corner of the screen. This will cause the
"SAS Code Editor" to pop up.
4.) On the "SAS Code Editor" screen, select "Edit
Mode" (rather than "View mode"). Then, deselect
the "Include Macros" item at the top of the screen.
5.) Then, click "Save and Run"
If you are using Enterprise Guide 4, then you need to deselect
"Include macros" for your stored process by following these steps.
1.) Click on the icon for your Stored Process to bring up the
Stored Process Manager.
2.) On the Stored Process Manager page, click "SAS Code"
3.) On the "SAS Code" window, click the "Include code for"
button at the bottom of the window.
Uncheck the box for "Stored process macros".
Save the code.
4.) Submit the stored process. If Entprise Guide asks
"Would you like to turn on the append macros settting",
then click "NO".
Operating System and Release Information
SAS System | SAS Integration Technologies | Microsoft Windows XP Professional | 9.1 TS1M0 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
64-bit Enabled Solaris | 9.1 TS1M0 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
z/OS | 9.1 TS1M0 | |
Linux | 9.1 TS1M0 | |
64-bit Enabled HP-UX | 9.1 TS1M0 | |
Linux on Itanium | 9.1 TS1M3 | |
HP-UX IPF | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
OpenVMS Alpha | 9.1 TS1M0 | |
64-bit Enabled AIX | 9.1 TS1M0 | |
Tru64 UNIX | 9.1 TS1M0 | |
*
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.
Type: | Usage Note |
Priority: | |
Topic: | System Administration ==> Servers ==> Integration Technologies
|
Date Modified: | 2007-02-02 17:22:48 |
Date Created: | 2004-10-13 11:17:49 |