SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsHotfixAboutRate It

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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows XP Professional9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows XP 64-bit Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS1M0
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Solaris for x649.1 TS1M3 SP49.2 TS1M0
z/OS9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS1M0
Linux9.1 TS1M3 SP49.2 TS1M0
Linux on Itanium9.1 TS1M3 SP4
OpenVMS Alpha9.1 TS1M3 SP49.2 TS1M0
HP-UX IPF9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS1M0
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS1M0
Tru64 UNIX9.1 TS1M3 SP49.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.