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.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under z/OS 4 How the Interface to DB2 Works 529proc server id=srv1;run;2 In the client sessionproc sql;connect to remote (server=srv1 dbms=db2 dbmsarg=(ssid=db25));select * from connection to remote(select * from db2table);disconnect from remote;quit;This example uses a previously created view descriptor. The client has its ownauthority <strong>for</strong> the connections. The PreLib libref PreLib that was previously assignedand the client-assigned libref MyLib have no relevant difference. These are Base <strong>SAS</strong>engine librefs and not DB2 engine librefs.1 In the server sessionlibname prelib V8 ’<strong>SAS</strong>.data.library’;proc server id=srv1;run;2 In the client sessionlibname prelib server=srv1;proc print data=prelib.accview;run;3 In the client sessionlibname mylib ’<strong>SAS</strong>.data.library2’ server=srv1 rengine=v8;proc print data=mylib.accview;run;Known Issues with RRSAF Support<strong>SAS</strong>/SHARE can use various communication access methods to communicate withclients. You can specify these through the COMAMID and COMAUX1 system options.When you use XMS (Cross Memory Services) as an access method, DB2 also usesXMS in the same address space. Predefining DB2 server librefs be<strong>for</strong>e starting PROCSERVER can result in errors due to the loss of the XMS Authorization Index, becauseboth <strong>SAS</strong> and DB2 are acquiring and releasing it. When using XMS as an accessmethod, use only client-assigned librefs on the server.This problem does not occur when you use the TCPIP access method. So if you useTCPIP instead of XMS, you can use both client-assigned (client authority) andserver-preassigned (server authority) librefs. You can also use either access method ifyour connection is not based on a libref (client authority).DB2 Under z/OS In<strong>for</strong>mation <strong>for</strong> the Database AdministratorHow the Interface to DB2 Works<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS uses either the Call Attachment Facility(CAF) or the Recoverable Resource Management Services Attachment Facility (RRSAF)to communicate with the local DB2 subsystem. Both attachment facilities enable

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

Saved successfully!

Ooh no, something went wrong!