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

Hi all,

 

hopefully someone is able to help me. I have established an odbc connection to an impala server and would like to use this connection in sas. Unfortunately I need to set a request pool but it does not work.

 

I can assign the library with this statement, but can not open a table because I have to set a request pool:

 libname eap odbc noprompt= "dsn=EAP_clientref; " schema=pc_anltcclientref_analysis access = readonly;

 

So  I tried to add a request pool but now I am receivin an error message:

 libname eap odbc noprompt= "dsn=EAP_clientref; " schema=pc_anltcclientref_analysis dbconinit="set request_pool=root.ACE-S-FRA-EAP-PROD-PC_ANLTCCLIENTREF" access = readonly;

 

Error Message:

The DBMS connection failed. The DBCONINIT=<command> option failed with this message:
[Cloudera][ImpalaODBC] (360) Syntax error occurred during query execution: [HY000] :
AnalysisException: Syntax error in line 1: set
request_pool=root.ACE-S-FRA-EAP-PROD-PC_ANLTCCLIENTREF ^ Encountered:
. Expected: BLOCK_SIZE, COMMENT, COMPRESSION, DEFAULT, ENCODING, NOT, NULL, PRIMARY, COMMA
CAUSED BY: Exception: Syntax error .
ERROR: Error in the LIBNAME statement.

 

Thanks in advance for your support.

 

Kinds regards,

Seb

1 ACCEPTED SOLUTION

Accepted Solutions
Seb2
Fluorite | Level 6
Just found a solution

libname eap32 odbc noprompt= "dsn=EAP32; " schema=pc_anltcclientref_analysis dbconinit="set request_pool='ACE-S-FRA-EAP-PROD-PC_ANLTCCLIENTREF'" access = readonly;

View solution in original post

3 REPLIES 3
SASKiwi
PROC Star

As a workaround you could try SQL Passthru and use the EXECUTE statement to set the request pool.

Seb2
Fluorite | Level 6

Hi,

 

thanks for your response. To be honest I have no idea how to set it up. Just had a look to sas help center. If I understand it correctly it is not possible to get a library with your suggested solution but to query directly. My preffered soultions would be a library if it is possible.

 

Thanks again.

Seb2
Fluorite | Level 6
Just found a solution

libname eap32 odbc noprompt= "dsn=EAP32; " schema=pc_anltcclientref_analysis dbconinit="set request_pool='ACE-S-FRA-EAP-PROD-PC_ANLTCCLIENTREF'" access = readonly;

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2293 views
  • 0 likes
  • 2 in conversation