Syntax, CONNECT statement:
PROC SQL;
CONNECT
TO DBMS-name <AS alias> (DBMS-connection-options);
QUIT;
dbms-name
identifies the database
management system to which you want to connect. You must specify the
DBMS name for your SAS/ACCESS interface. You can also specify an optional
alias.
alias
specifies for the connection
an optional alias that has 1 to 32 characters. If you specify an alias,
the keyword AS must appear before the alias. If an alias is not specified,
the DBMS name is used as the name of the SQL pass-through connection.
DBMS-connection-options
specifies values for
DBMS-specific arguments that PROC SQL needs in order to connect to
the DBMS. Though they are optional for most databases, you must enclose
the values in parentheses if you include any.
|
Syntax, DISCONNECT statement:
PROC SQL;
CONNECT
TO dbms-name <AS alias> (DBMS-connection-options);
DISCONNECT FROM dbms-name | alias
QUIT;
dbms-name
specifies the database
management system from which you want to disconnect. You must either
specify the DBMS name for your SAS/ACCESS interface or use an alias
in the DISCONNECT statement.
Note: If you used the CONNECT statement
to connect to the DBMS, the DBMS name or alias in the DISCONNECT statement
must match what you specified in the CONNECT statement.
alias
specifies an alias
that was defined in the CONNECT statement.
|
proc sql; connect to oracle (user=User password=Student827 path=localhost); select * from connection to oracle (select * from customers where customer like '1%'); disconnect from oracle; quit;
Syntax, SAS/ACCESS LIBNAME
statement:
LIBNAME libref engine <SAS/ACCESS-engine-options>;
|
LIBNAME libref clear;
3.144.227.52