The termination command
that you select can be a script, stored procedure, or any DBMS SQL
statement that might provide additional control over the interaction
between the
SAS/ACCESS engine and the DBMS. The command executes
immediately before SAS terminates the last connection to the DBMS.
If the command fails, SAS provides a warning message, but unassigning
the library and disconnecting from the DBMS still occur. You must
specify the command as a single quoted string.
DBLIBTERM= fails if
either CONNECTION=UNIQUE or DEFER=YES or both of these LIBNAME options
are specified.
When two LIBNAME statements
share the same physical connection, the termination command is executed
only once. (Multiple LIBNAME statements that use CONNECTION=GLOBALREAD
and identical values for CONNECTION_GROUP=, DBCONINIT=, DBCONTERM=,
DBLIBINIT=, and DBLIBTERM= options and any DBMS connection options
can share the same connection to the DBMS.)