![]() Chapter Contents |
![]() Previous |
![]() Next |
| DISCONNECT Statement |
| Optional statement |
| Syntax | |
| Arguments | |
| Example |
Syntax |
| DISCONNECT FROM dbms-name | alias |
Any return code or message that is generated by the DBMS is available in the macro variables SQLXRC and SQLXMSG after the statement executes. See SQL Procedure Pass-Through Facility Return Codes for more information on these macro variables.
| Arguments |
You use one of the following arguments with the DISCONNECT statement:
Note: If you used the CONNECT statement to connect to the
DBMS, the DISCONNECT statement's DBMS name or alias must match the name or
alias that you specified in the CONNECT statement. ![[cautionend]](../common/images/cautend.gif)
| Example |
The following example disconnects the user from a DB2 database with the alias DBCON1 and terminates the SQL procedure:
proc sql; connect to db2 as dbcon1 (ssid=db2a); .... disconnect from dbcon1; quit;
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.