BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
RyanJB
Obsidian | Level 7

Running a very simple PROC IMPORT (Excel) that works fine on EG 7.1 but fails on EG 8.2. The error report doesn't mean much to me. See below for the relevant part of the log and the IMPORT statement.

 

proc import datafile = "X:\data\online_only.xlsx" dbms = excel out = dat_raw replace;
 /* log info below */
36         %LET _CLIENTTASKLABEL=;
37         %LET _CLIENTPROCESSFLOWNAME=;
38         %LET _CLIENTPROJECTPATH=;
39         %LET _CLIENTPROJECTPATHHOST=;
40         %LET _CLIENTPROJECTNAME=;
41         %LET _SASPROGRAMFILE=;
42         %LET _SASPROGRAMFILEHOST=;
43         
44         ;*';*";*/;quit;

ERROR: Connect: Class not registered
ERROR: Error in the LIBNAME statement.
ERROR: Connection Failed.  See log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE IMPORT used (Total process time):

Can anyone help me understand what is causing this error?

 

The only other lines above this are setting a library name (which is done successfully) and some global options (also successfully, though the only relevant part for this project is validvarname).

options pageno = 1 yearcutoff = 1950 number spool validvarname = v7; 
goptions device = png;
1 ACCEPTED SOLUTION

Accepted Solutions
Kurt_Bremser
Super User

Are you sure that you connect to the same workspace server definition? Compare your connection profiles and the server you use for code execution.

Alternatively, use dbms=xlsx for a test.

View solution in original post

2 REPLIES 2
Kurt_Bremser
Super User

Are you sure that you connect to the same workspace server definition? Compare your connection profiles and the server you use for code execution.

Alternatively, use dbms=xlsx for a test.

RyanJB
Obsidian | Level 7
dbms = xlsx fixed it (I thought I had already done that, but clearly did not!)

Thank you!

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 1382 views
  • 3 likes
  • 2 in conversation