BookmarkSubscribeRSS Feed
danr
Calcite | Level 5
Sorry if this in the wrong forum, I don't actually know anything about SAS but I have a SAS file (.sas7bdat) that I need to load into SQL Server 2008. While trying to use the "SAS Local Data Provider 9.2" I get these errors:

Error Description: A Server error has occured: ;fn=ydedopn; context =sasej9lib0902.dll; fn=ydedopn; context =sasej9lib0902.dll.

and

Error Description: A provider specific error occured (SASUPDataSet::OpenFile() : Data Set Name (cTableByteLen) too long. Not a Valid SAS Name).

The errors occurs as soon as you set the file to be a data source.

The file can be loaded into SQL Server 2000 using ODBC (SAS Universal ODBC Driver) so it is a valid file, despite what the second error seems to suggest.

Any help that can be provided would be appreciated.
1 REPLY 1
NullPointer
Calcite | Level 5

Just in case anybody else comes here and there is no solution..

 

According to the documentation, the data source should be set to the folder where the sas7bdat file(s) reside.

The provider treats the folder as the “database” and each file is a “table” in the “database”

 

"Provider=sas.LocalProvider; Data Source=C:\SASInputFiles\"

 

Each file is then treated as a table.. 

 

Hope this helps!

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 1 reply
  • 1777 views
  • 1 like
  • 2 in conversation