Usage Note 59182: Table lock errors might occur with the hash package in PROC DS2
Error messages like the following can be generated when a PROC DS2 program contains the hash package inside a threaded program:
ERROR: BASE driver, Table TMP_LOOKUP is already in use and cannot be locked.
If you opened the file with LOCKTABLE=EXCLUSIVE, try the LOCKTABLE=SHARE option
ERROR: BASE driver, Table LIB.HASH does not exist or cannot be accessed or created
ERROR: Table "LIB.HASH" does not exist or cannot be accessed
ERROR: Unable to prepare statement for hash data source lib.hash.
ERROR: Error reported by DS2 package d2hash:
ERROR: Hash data source load failed.
ERROR: Fatal run-time error.
There is not a way in the hash "dataset" parameter to specify the LOCKTABLE=SHARE option. You need to use a connection string to explicitly set the option, and then all table access for that schema will be shared. Here is an example:
proc ds2 conn='DRIVER=BASE;CATALOG=BASE;schema=(name=BASE;primarypath="c:");locktable=share;' nolibs;
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.4 TS1M3 | |
z/OS 64-bit | 9.4 TS1M3 | |
Microsoft® Windows® for x64 | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M3 | |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M3 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8.1 Pro x64 | 9.4 TS1M3 | |
Microsoft Windows 10 | 9.4 TS1M3 | |
Microsoft Windows Server 2008 | 9.4 TS1M3 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M3 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M3 | |
Windows 7 Enterprise 32 bit | 9.4 TS1M3 | |
Windows 7 Enterprise x64 | 9.4 TS1M3 | |
Windows 7 Home Premium 32 bit | 9.4 TS1M3 | |
Windows 7 Home Premium x64 | 9.4 TS1M3 | |
Windows 7 Professional 32 bit | 9.4 TS1M3 | |
Windows 7 Professional x64 | 9.4 TS1M3 | |
Windows 7 Ultimate 32 bit | 9.4 TS1M3 | |
Windows 7 Ultimate x64 | 9.4 TS1M3 | |
64-bit Enabled AIX | 9.4 TS1M3 | |
64-bit Enabled Solaris | 9.4 TS1M3 | |
HP-UX IPF | 9.4 TS1M3 | |
Linux for x64 | 9.4 TS1M3 | |
Solaris for x64 | 9.4 TS1M3 | |
*
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: | medium |
Topic: | SAS Reference ==> Procedures ==> DS2
|
Date Modified: | 2016-10-20 16:04:26 |
Date Created: | 2016-10-19 12:01:27 |