BookmarkSubscribeRSS Feed
Hari2
Quartz | Level 8

Hi All,

 

Greetings.

 

We need to pull data from SQL Server into SASGRID. SQL Server 2012 is in local windows environment. SASGRID is in server location.

 

We use local SAS Editor and execute code remotely using RSUBMIT-ENDRSUBMIT.

When I use code below I am getting error. Please check.

However, with same code I am able to connect to sql in local sas (when I run with out Rsubmit - Endrsubmit).

 

rsubmit;

libname test odbc schema="XXXX" noprompt="server=XXXX;

DRIVER=SQL Server;Trusted_Connection=yes;database=XXX";

endrsubmit;

 

ERROR: CLI error trying to establish connection: [iODBC][Driver Manager]SQL Server: cannot open

       shared object file: No such file or directory : [iODBC][Driver Manager]Specified driver could

       not be loaded

 

Thanks,

Hari.

3 REPLIES 3
LinusH
Tourmaline | Level 20

So you are using SAS/CONNECT rsubmit to deploy jobs on the grid?

Either way, I suspect that each Grid node needs the ability to connect to that SQL Server instance. It's convenient if you have a shared location for configuration files so you don't have to update this on each node.

Data never sleeps
Hari2
Quartz | Level 8

Hi Linush,

 

Thanks.

Yes, I use SAS/CONNECT.

So finally, what should I do to connect to SQl Server ? Sorry, I did n't get you completely.

LinusH
Tourmaline | Level 20

You need to follow the post installation configuration steps for SAS/ACCESS, and that needs to be done for all nodes (or just once if installed on a shared location). See the doc for your Grid host environment.

Data never sleeps

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
  • 3 replies
  • 417 views
  • 0 likes
  • 2 in conversation