Consultor Eletrônico



Kbase P122939: How to use the CONNECT statement passing variables from an ABL procedure to connect to a Progress Da
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/5/2007
Status: Unverified

GOAL:

How to use the CONNECT statement passing variables from an ABL procedure to connect to a Progress Database?

GOAL:

How to combine the CONNECT statement with variables values in way to connect to a Progress Database?

GOAL:

Connecting from a procedure to a Progress Database using variables values

FIX:

The following example shows how to use CONNECT using the values contained in variables in way to connect to a Progress Database.
DEF VAR X AS CHAR INIT "SPORTS2000".
DEF VAR Y as INT INIT 9998.
DEF VAR Z as CHAR INIT "localhost".
CONNECT VALUE(X) -N tcp -H VALUE(Z) -S VALUE(Y).