Problem Note 4195: PROC IMPORT is not setting the SYSLAST and SYSDSN Macros Correctly
When you use PROC IMPORT to read a PC database into SAS and you use
the SYSLAST and SYSDSN macros, if you have a subsequent procedure
that uses the newly created data set without specifying that
data set name, this error appears:
ERROR: Libref.Dataset.DATA does not exist.
This error appears because PROC IMPORT truncates the data set name
to 15 characters, thus setting the value for the macro incorrectly.
Here is an example:
Proc Import OUT=Work.Industryworkersemp
datatable="hmob"
DBMS=ACCESS97 REPLACE;
Database="C:\My Documents\thisone.mdb";
run;
%put &syslast;
%put &sysdsn;
this generates:
%put &syslast;
WORK.INDUSTRYWORKERS
%put &sysdsn;
WORK.INDUSTRYWORKERS
proc print; run;
You expect the last data set WORK.INDUSTRYWORKERSEMP to be
printed, but instead you get this error message:
ERROR: File WORK.INUDSTRYWORKERS.DATA does not exist.
A Technical Support hot fix for Release 8.2 TSLEVEL 2M0 for this
problem is available at:
http://www.sas.com/techsup/download/hotfix/82_sbcs_prod_list.html#004195
For customers running SAS with Asian Language Support (DBCS), this
hot fix should be downloaded from:
http://www.sas.com/techsup/download/hotfix/82_dbcs_prod_list.html#004195
Operating System and Release Information
| Product Family | Product | System | Reported Release | Fixed Release* |
| SAS System | Base SAS | Microsoft Windows 95/98 | 8 TS M0 | |
| Microsoft Windows NT Workstation | 8 TS M0 | 9 TS M0 |
| Microsoft Windows 2000 Server | 8 TS M0 | 9 TS M0 |
| Microsoft Windows 2000 Advanced Server | 8 TS M0 | 9 TS M0 |
| Microsoft Windows 2000 Professional | 8 TS M0 | 9 TS M0 |
| Microsoft Windows 2000 Datacenter Server | 8 TS M0 | 9 TS M0 |
*
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 |
| Date Modified: | 2002-04-23 14:53:25 |
| Date Created: | 2001-01-26 09:19:02 |