Try OpenEdge Now
skip to main content
Startup Command and Parameter Reference
Introduction : Using parameter files : Calling parameter files : Calling a parameter file in a CONNECT statement
 
Calling a parameter file in a CONNECT statement
Use the following syntax to specify a parameter file in a CONNECT statement in an ABL procedure:
CONNECT -pf sports.pf
For example, the following new_york.p procedure connects using a parameter file called new_york.pf.
UPDATE ny_user ny_password BLANK.
CONNECT -pf new_york.pf
-U VALUE(ny_user) -P VALUE(ny_passwd)
NO-ERROR.
IF NOT CONNECTED("new_york") THEN
MESSAGE "Connection to New York office failed".