The SAS Output Delivery System and reporting techniques

Error writing to OPEN ODS HTML in SAS9.2

Reply
N/A
Posts: 0

Error writing to OPEN ODS HTML in SAS9.2

Hi

I am in process of upgrading to SAS 9.2 (M2) on z/OS. One of the job writes to an Open ODS HTML successfully on SAS9.1.3 but can't on SAS9.2. The error i am getting is
"ERROR: AT LEAST ONE FILE ASSOCIATED WITH FILEREF OUTHTML IS STILL IN USE.
ERROR: ERROR IN THE FILENAME STATEMENT."

I have sorted out the problem by closing it off and reinitialising it. But i don't understand why i have to do this, given that i can't find any reference of making these changes in the first place. My only worry is that are there any more changes like this that i need to look at.

Thanks
Frequent Contributor
Posts: 106

Re: Error writing to OPEN ODS HTML in SAS9.2

Posted in reply to deleted_user
Not sure whether I exactly understand what you want.
Does the following help? (Watch especially for the second FILENAME statement).

x 'umask 002' ;

filename outhtml '/var/rzb/sas/tmp/ods_html_92.html' ;

ods listing close ;

ods html body=outhtml (no_bottom_matter) ;
proc print data=sashelp.class(where=(age<15)) ;
run ;
ods html close ;

filename outhtml "%sysfunc(pathname(outhtml))" mod ;

ods html body=outhtml (no_top_matter) ;
proc print data=sashelp.class(where=(age>14)) ;
run ;
ods html close ;


Kind regards
Robert Bardos
Super Contributor
Super Contributor
Posts: 3,174

Re: Error writing to OPEN ODS HTML in SAS9.2

Posted in reply to deleted_user
Need to see your SASLOG output when the error occurred. Also, ensure that you are current on SAS HOTFIX maintenance. It's quite possible that SAS tightened up open FILENAME allocations, but your SAS-generated log (with all SAS code revealed) will help explain more about the situation.

Also, check your FILELOCKS OPTIONS setting, new with SAS 9.2.

Scott Barry
SBBWorks, Inc. Message was edited by: sbb
Ask a Question
Discussion stats
  • 2 replies
  • 160 views
  • 0 likes
  • 3 in conversation