Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mruehl
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!

Labels (1)
1 Reply
Anil_Babu_Samineni

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