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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

456 Introduction to <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under UNIX and PC Hosts 4 Chapter 15String Data 478Numeric Data 478Date, Time, and Timestamp Data 479DB2 Null and Default Values 480LIBNAME Statement Data Conversions 480DBLOAD Procedure Data Conversions 481Introduction to <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under UNIX and PC HostsThis section describes <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under UNIX and PC Hosts.For a list of <strong>SAS</strong>/<strong>ACCESS</strong> features that are available in this interface, see “<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 Under UNIX and PC Hosts: Supported Features” on page 76.LIBNAME Statement Specifics <strong>for</strong> DB2 Under UNIX and PC HostsOverviewThis section describes the LIBNAME statement that <strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2under UNIX and PC Hosts supports and includes an example. For details about thisfeature, see “Overview of the LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page87.Here is the LIBNAME statement syntax <strong>for</strong> accessing DB2 under UNIX and PCHosts.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 UNIX and PC Hostsinterface.connection-optionsprovides connection in<strong>for</strong>mation and control how <strong>SAS</strong> manages the timing andconcurrence of the connection to the DBMS. When you use the LIBNAMEstatement, you can connect to DB2 several ways. Specify only one of thesemethods <strong>for</strong> each connection because they are mutually exclusive.3 USER=, PASSWORD=, DATASRC=3 COMPLETE=

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

Saved successfully!

Ooh no, something went wrong!