The application requester can implicitly connect to an application server.
For a distributed program, the implicit connection is to the relational database specified on the RDB parameter. For a nondistributed program, the implicit connection is to the local relational database.
SQL ends any active connections in the default activation group when SQL becomes not active. SQL becomes not active when the application requester detects that the first active SQL program for the process has ended and the following conditions are all met:
If there are pending changes, protected conversations, or an active SET TRANSACTION statement, then SQL is placed in the exited state. If programs precompiled with CLOSQLCSR(*ENDJOB) were run, then SQL will remain active for the default activation group until the job ends.