When I tried to connect to data base using .pf file in OpenEdge progress 4gl it is throwing error 1006.
Error Message: rfile.r Database dbname not connected. (1006)
Could anyone tell me how to handle Error 1006 ?
Could anyone tell me how to handle Error 1006 ?
The short answer is: you need to connect to the database.
You can do this via the command-line ( prowin -pf mydb.pf
) or via ABL in a procedure that runs ( CONNECT -pf mydb.pf
).
If you do connect in ABL code you cannot reference the newly-connected database in the same program. You must connect in one program (.p/.cls), and then run another program, to reference that database.