Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
ManuelRühl
Partner - Specialist
Partner - Specialist

Using variable for lib-Connection

I want to store a specific Data Connection into a variable so that I can do the following:

LIB CONNECT TO 'vODBC';

vODBC is the variable.

I need this for looping through different ODBC Sources.

The problem is, I don't get the right syntax, just $(vODBC) does not work.

Thanks in advance!

Manuel Rühl
Labels (1)
1 Reply
Anil_Babu_Samineni
MVP
MVP

Perhaps this?

SET vODBC = 'Connection String';

and then,  LIB CONNECT TO '$(vODBC)';

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful