13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

The LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 CONNECTION_GROUP= LIBNAME Option 113In the following GLOBAL example, two different librefs share one connection.libname db2lib db2 connection=global;libname db2data db2 connection=global;data db2lib.new(in=’database test’);set db2data.old;run;If you did not use the CONNECTION= option in the above two examples, you woulddeadlock in DB2 and get the following error:ERROR: Error attempting to CREATE a DBMS table.ERROR: DB2 execute error DSNT408I SQLCODE = --911,ERROR: THE CURRENT UNIT OF WORK HAS BEEN ROLLEDBACK DUE TO DEADLOCK.See Also“<strong>ACCESS</strong>= LIBNAME Option” on page 93“CONNECTION_GROUP= LIBNAME Option” on page 113“DEFER= LIBNAME Option” on page 139CONNECTION_GROUP= LIBNAME OptionCauses operations on multiple librefs and on multiple SQL pass-through facility CONNECTstatements to share a connection to the DBMS.Default value: noneValid in: <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statementDBMS support: Aster nCluster, DB2 under UNIX and PC Hosts, DB2 under z/OS,Greenplum, HP Neoview, In<strong>for</strong>mix, Microsoft SQL Server, MySQL, Netezza, ODBC,OLE DB, Oracle, Sybase, Sybase IQ, TeradataSyntaxCONNECTION_GROUP=connection-group-nameSyntax Descriptionconnection-group-nameis the name of a connection group.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!