Usage Note 31540: Unable to clear the fileref listed in the SASAUTOS= system option
Once a fileref has been listed in SASAUTOS= system option, there is no way to clear or reassign that fileref. For efficiency purposes, once an AUTOCALL library has been allocated, it remains open for the duration of the SAS® session. An attempt to clear the fileref associated with SASAUTOS or invoking the same FILENAME statement in that SAS session generates the following errors:
The following errors are written to the log in SAS® 9.1.3 and earlier:
ERROR: File is already open.
ERROR: Error in the FILENAME statement.
The following errors are written to the log in SAS® 9.2:
ERROR: At least one file associated with fileref TEST is still in use.
ERROR: Error in the FILENAME statement.
This is by design. There is no workaround other than issuing the FILENAME statement for the autocall location only once within the SAS session or restarting the SAS session. You cannot specify FILENAME CLEAR on an autocall library.
Similar errors are issued when you attempt to clear or reassign a libref listed on the SASMSTORE= system option. Starting with SAS® 9.3, you can use the %SYSMSTORECLEAR statement to clear a libref associated with the SASMSTORE= option. This option is only for the Stored Compiled Macro facility, not the Autocall facility.
Operating System and Release Information
SAS System | Base SAS | z/OS | | |
OpenVMS VAX | | |
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 | | |
OS/2 | | |
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 XP Professional | | |
Windows Millennium Edition (Me) | | |
Windows Vista | | |
64-bit Enabled AIX | | |
64-bit Enabled HP-UX | | |
64-bit Enabled Solaris | | |
ABI+ for Intel Architecture | | |
AIX | | |
HP-UX | | |
HP-UX IPF | | |
IRIX | | |
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.
For efficiency purposes, once an AUTOCALL library has been allocated, it will remain open for the duration of the SAS session.
Type: | Usage Note |
Priority: | medium |
Date Modified: | 2011-03-28 13:56:56 |
Date Created: | 2008-03-19 14:57:54 |