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.

534 Introduction to <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Greenplum 4 Chapter 17Introduction to <strong>SAS</strong>/<strong>ACCESS</strong> Interface to GreenplumThis section describes <strong>SAS</strong>/<strong>ACCESS</strong> Interface to Greenplum. For a list of<strong>SAS</strong>/<strong>ACCESS</strong> features that are available <strong>for</strong> this interface, see “<strong>SAS</strong>/<strong>ACCESS</strong> Interfaceto Greenplum: Supported Features” on page 77.LIBNAME Statement Specifics <strong>for</strong> GreenplumOverviewThis section describes the LIBNAME statement that <strong>SAS</strong>/<strong>ACCESS</strong> Interface toGreenplum supports and includes examples. 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 Greenplum.LIBNAME libref greenplm ;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.greenplmspecifies the <strong>SAS</strong>/<strong>ACCESS</strong> engine name <strong>for</strong> the Greenplum interface.connection-optionsprovide 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 the Greenplum database in two ways. Specify onlyone of these methods <strong>for</strong> each connection because they are mutually exclusive.3 SERVER=, DATABASE=, PORT=, USER=, PASSWORD=3 DSN=, USER=, PASSWORD=Here is how these options are defined.SERVER=server-namespecifies the Greenplum server name or the IP address of the server host. Ifthe server name contains spaces or nonalphanumeric characters, you mustenclose it in quotation marks.DATABASE=database-namespecifies the Greenplum database that contains the tables and views that youwant to access. If the database name contains spaces or nonalphanumericcharacters, you must enclose it in quotation marks. You can specifyDATABASE= with the DB= alias.PORT=portspecifies the port number that is used to connect to the specified Greenplumdatabase. If you do not specify a port, the default is 5432.USER=Greenplum user-name

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

Saved successfully!

Ooh no, something went wrong!