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 Arguments 485DB2 Attachment Facilities (CAF and RRSAF) 531Accessing DB2 System Catalogs 532Introduction to <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under z/OSThis section describes <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS. For a list of<strong>SAS</strong>/<strong>ACCESS</strong> features that are available in this interface, see “<strong>SAS</strong>/<strong>ACCESS</strong> Interfaceto DB2 Under z/OS: Supported Features” on page 77.Note: z/OS is the successor to the OS/390 (<strong>for</strong>merly MVS) operating system. <strong>SAS</strong>9.1 <strong>for</strong> z/OS is supported on both OS/390 and z/OS operating systems and, throughoutthis document, any reference to z/OS also applies to OS/390 unless otherwise stated. 4LIBNAME Statement Specifics <strong>for</strong> DB2 Under z/OSOverviewThis section describes the LIBNAME statement that <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2under z/OS supports and includes an example. For details about this feature, see“Overview of the LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 87.Here is the LIBNAME statement syntax <strong>for</strong> accessing DB2 under z/OS interface.LIBNAME libref db2 ;Argumentslibrefspecifies any <strong>SAS</strong> name that serves as an alias to associate <strong>SAS</strong> with a database,schema, server, or group of tables and views.db2specifies the <strong>SAS</strong>/<strong>ACCESS</strong> engine name <strong>for</strong> the DB2 under z/OS interface.connection-optionsprovides connection in<strong>for</strong>mation and control how <strong>SAS</strong> manages the timing andconcurrence of the connection to the DBMS. Here is how these options are defined.LOCATION=locationmaps to the location in the SYSIBM.LOCATIONS catalog in thecommunication database. In <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS, thelocation is converted to the first level of a three-level table name:location.authid.table. DB2 Distributed Data Facility (DDF) CommunicationDatabase (CDB) makes the connection implicitly to the remote DB2subsystem when DB2 receives a three-level name in an SQL statement.If you omit this option, <strong>SAS</strong> accesses the data from the local DB2 databaseunless you have specified a value <strong>for</strong> the SERVER= option. This option is notvalidated until you access a DB2 table. If you specify LOCATION=, you mustalso specify the AUTHID= option.SSID=DB2-subsystem-id

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

Saved successfully!

Ooh no, something went wrong!