DATA Step, Macro, Functions and more

Using SAS FEDSQL and DS2 against SAS ACCESS/ODBC connections

Reply
Contributor
Posts: 44

Using SAS FEDSQL and DS2 against SAS ACCESS/ODBC connections

Hi All,

 

I am unable to use SAS FEDSQL and DS2 against SQL Appliances that have been connected to using SAS ACCESS/ODBC. I keep getting ERROR: TKTS initialization failed.  We don't have the Federation Server licence, hoping it is not required.

 

Many thanks 

 

G

Super User
Posts: 10,217

Re: Using SAS FEDSQL and DS2 against SAS ACCESS/ODBC connections

Posted in reply to gra_in_aus

Did you already do a google search for "ERROR: TKTS initialization failed"? If not, there might be hints in the quite numerous results.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Contributor
Posts: 44

Re: Using SAS FEDSQL and DS2 against SAS ACCESS/ODBC connections

Posted in reply to KurtBremser

Google doesn't provide any detailed information.  The basic examples that I have used for FEDSQL and DS2 work when using SAS data on the server.  However, it fail with the TKTS error.  I have noticed that the TKTS error seems to be very general and not specific.  I am so used to specific error messages in the SAS log.   DS2 and FEDSQL error messaging needs to be improved.

 

Note: Using SAS 9.4m3 and SAS/ACCESS to ODBC to connect to a Postgresql Database.

 

G

Valued Guide
Posts: 592

Re: Using SAS FEDSQL and DS2 against SAS ACCESS/ODBC connections

Posted in reply to gra_in_aus

You shouldn't need a Federation Server licence for this - I suspect there may be something wrong with your ODBC connection.

 

Are you able to successfully connect and run some "old school" SAS i.e. not DS2 code against the data source using the same connection string?

Contributor
Posts: 44

Re: Using SAS FEDSQL and DS2 against SAS ACCESS/ODBC connections

Posted in reply to ChrisBrooks

Hi Chris,

 

I have successfully ran PROC SQL and DATA steps against the ODBC connection without issue, just the DS2 and FEDSQL giving problems. As mentioned I know the FEDSQL and DS2 code that I have ran is good as I changed the input and out put libraries to SAS locations and it works really well.

 

Forgot to mention that SAS is being ran on Red Hat Linux in AWS and using a AWS RDS Postgresql Database.

 

ODBC connection details I have set are:

 

[pos-server-name]
Driver = PostgreSQL
Description = PostgreSQL Data Source
Servername = xxxxxxxx-server-location-xxxxxxxx
Port = 5432
Protocol = 7.4
Database = riskindex_poc
SSLMode = require
SSLKeyFile = /apps/unixodbc/etc/rds-combined-ca-bundle.pem
MaxLongVarcharSize = 32767

 

 

Many thanks

 

G

Valued Guide
Posts: 592

Re: Using SAS FEDSQL and DS2 against SAS ACCESS/ODBC connections

Posted in reply to gra_in_aus

That seems odd - I think your best bet would be to raise a track with SAS Support

Ask a Question
Discussion stats
  • 5 replies
  • 208 views
  • 0 likes
  • 3 in conversation