Problem Note 19486: "ERROR: Invalid memptr" occurs and the SAS® session becomes unresponsive when trying to access a view via a libref with the META LIBNAME engine
If you try to access an SQL view in a PROC or DATA step using a libref
that was allocated with the META Libname engine, the following error
occurs and the SAS session becomes unresponsive:
ERROR: Invalid memptr
This problem occurs only if the SQL view was created with the USING
clause to embed a LIBNAME in the view definition. For example, suppose you
defined the following view from the table INVALID_MEMPTR_TEST, and imported the view into metadata:
proc sql noprint;
create view test.INVALID_MEMPTR_TEST_VIEW as
select * from test.INVALID_MEMPTR_TEST
using libname TEST BASE "c:\data\tables";
quit;
The error occurs when you allocate a library using the META engine and attempt to read the view. For example:
libname mylib META
library="Test Library"
metaserver="sasbi.demo.sas.com"
port="8561"
user="sasbi\sasdemo"
password="sasdemo_PW"
repname="Foundation"
protocol=BRIDGE;
data work.read_data;
set mylib.INVALID_MEMPTR_TEST_VIEW;
run;
As a circumvention to the error, either remove the
USING clause from the view definition, or allocate the library with the
appropriate SAS or DBMS engine rather than the META engine.
See SAS Note 36636 "'ERROR: Invalid memptr' occurs when accessing an SQL view defined with an embedded libname using the META engine" for a related problem.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
z/OS | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Linux on Itanium | 9.1 TS1M3 SP4 | |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Tru64 UNIX | 9.1 TS1M3 SP4 | 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.
Type: | Problem Note |
Priority: | medium |
Topic: | SAS Reference ==> SQL SAS Reference ==> Procedures ==> SQL
|
Date Modified: | 2007-04-03 17:27:32 |
Date Created: | 2007-02-02 15:15:14 |