#-------------------------------------------------------------------------------
# Function to force applications off database.
# Arguments: $1 sleep interval in seconds (FORCE is asynchronous); 
#            $2 Korn Shell debug mode (+x=off, -x=on).
#-------------------------------------------------------------------------------
#
FORCE_APPLICATIONS()
{
 set "$2"
 print "\n_____________________"
 print "Forcing applications (users) off the database"
 db2 -v "CONNECT RESET"
 db2 -v "FORCE APPLICATIONS ALL"
 sleep "$1"
 print "____________________\n"
}
