| Accessing Other Vendors' DBMS Data |
| DBMS Access Using the SQL Procedure Pass-Through
Facility |
| DISCONNECT Statement
Finally, to end the connection to the DBMS, use the DISCONNECT statement. |
General form, DISCONNECT statement:
where dbms-name | alias identifies the database management system or its alias.
|
| Example
In the PROC SQL step below, the DISCONNECT statement ends the connection to the DB2 database that has the alias Dbshare and terminates the SQL procedure. proc sql;
connect to db2 as dbshare (ssid=db2a);
...
disconnect from dbshare;
quit;
|
![]() |
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.