Usage Note 33419: New functionality associated with SAS/AF® Variable Values List Model
In SAS/AF 9.2, the Variable Values List Model class includes a new method named _close(). The _close() method enables SAS/AF programmers to explicitly close the data set that is associated with this class.
This method was added to address known problems with reusing data set IDs in previous SAS/AF releases. (See SAS Note 4276.)
So, in SAS/AF 9.2, programmers should use the new _close() method in order to manually close the data set that is associated with the Variable Values List Model class.
If the new _close() method is not used in SAS/AF 9.2, then running SAS/AF applications that were developed using SAS 8.2 or SAS 9.1.3 might generate errors like the following:
ERROR: Lock held by .
ERROR: Lock held by <strange characters>
ERROR: You cannot open <table name>.DATA for output access with
member-level control because< table name>.DATA is in use by
you in resource environment DATASTEP.
An example of the _close() syntax is included below.
if variablevalueslist1.dataset ^= '' then variablevalueslist1._close();
variablevalueslist1.dataset = '';
... update data set ...
variablevalueslist1.dataset = '< your data set>';
variablevalueslist1.variable = '< your variable name >';
|
Operating System and Release Information
SAS System | SAS/AF | Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.2 TS1M0 | |
Microsoft Windows XP 64-bit Edition | 9.2 TS1M0 | |
Microsoft® Windows® for x64 | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.2 TS1M0 | |
Microsoft Windows Server 2003 Standard Edition | 9.2 TS1M0 | |
Microsoft Windows XP Professional | 9.2 TS1M0 | |
Windows Vista | 9.2 TS1M0 | |
64-bit Enabled AIX | 9.2 TS1M0 | |
64-bit Enabled HP-UX | 9.2 TS1M0 | |
64-bit Enabled Solaris | 9.2 TS1M0 | |
HP-UX IPF | 9.2 TS1M0 | |
Linux | 9.2 TS1M0 | |
Linux for x64 | 9.2 TS1M0 | |
OpenVMS on HP Integrity | 9.2 TS1M0 | |
Solaris for x64 | 9.2 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.
To correct an issue with the SAS/AF software, the data set that is associated with the Variable Values List Model must be closed by the programmer.
Type: | Usage Note |
Priority: | |
Topic: | Common Programming Tasks
|
Date Modified: | 2008-10-08 16:40:16 |
Date Created: | 2008-09-25 16:14:58 |