BookmarkSubscribeRSS Feed
MarcTC
Obsidian | Level 7
I created a stored process in EG. It simply writes some HTML code to _webout, but I got the error message: ERROR: File is in use, _WEBOUT. I couldn't figure out how to fix this error.
3 REPLIES 3
Cynthia_sas
Diamond | Level 26
Hi:
This is a known message. Searching support.sas.com would have shown you this hit:
http://support.sas.com/kb/13/599.html

Also, I believe there have been previous forum postings on this topic.

cynthia
rajeshgg11
Calcite | Level 5

When we ran the stored procedure with the following source code we are always getting a message:
Error Message: Error File is in use _WEBOUT

 

Sample code:

 

/* Main Aisle of the Online Library */
data _null_;
file _webout;
if libref('SAVE') ne 0 then
rc = stpsrv_session('create');
put '<HTML>';
put '<HEAD><TITLE>Online Library
Main Aisle</TITLE></HEAD>';
put;
put '<BODY vlink="#004488" link="#0066AA"
bgcolor="#E0E0E0">';
put '<H1>Online Library Main Aisle</H1>';
put;
put 'Select one of the following
areas of the library:';
put '<UL>';
length hrefroot $400;
hrefroot = symget('_THISSESSION') ||
'&_PROGRAM=/WebApps/Library/';
put '<LI><A HREF="' hrefroot +(-1)
'Aisles&type=Book">Book Aisle</A></LI>';
put '<LI><A HREF="' hrefroot +(-1)
'Aisles&type=Video">Video Aisle</A></LI>';
put '<LI><A HREF="' hrefroot +(-1)
'Aisles&type=Audio">Audio Aisle</A></LI>';
put '<LI><A HREF="' hrefroot +(-1)
'Aisles&type=Hardware">Hardware Aisle</A></LI>';
put '<LI><A HREF="' hrefroot +(-1)
'Shopping Cart">View my shopping cart</A></LI>';
put '<LI><A HREF="' hrefroot +(-1)
'Logout">Logout</A></LI>';
put '</UL>';
put '</BODY>';
put '</HTML>';
run;

Vince_SAS
Rhodochrosite | Level 12

If you want to create your own HTML, then don't use ODS.  It is ODS that has a lock on the _WEBOUT FILEREF.

 

Vince DelGobbo

SAS R&D

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 9809 views
  • 2 likes
  • 4 in conversation