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.

92 LIBNAME Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 Chapter 10Using the Prompting Window When Specifying LIBNAME OptionsThe following statement uses the DBPROMPT= LIBNAME option to cause the DBMSconnection prompting window to appear and prompt you <strong>for</strong> connection in<strong>for</strong>mation:libname mydblib oracle dbprompt=yes;When you use this option, you enter connection in<strong>for</strong>mation into the fields in theprompting window rather than in the LIBNAME statement.You can add the DEFER=NO LIBNAME option to make the prompting windowappear at the time that the libref is assigned rather than when the table is opened:libname mydblib oracle dbprompt=yes defer=no;Assigning a Libref to a Remote DBMS<strong>SAS</strong>/CONNECT (single-user) and <strong>SAS</strong>/SHARE (multiple user) software give youaccess to data by means of remote library services (RLS). RLS lets you access your dataon a remote machine as if it were local. For example, it permits a graphical interface toreside on the local machine while the data remains on the remote machine.This access is given to data stored in many types of <strong>SAS</strong> files. Examples includeexternal databases (through the <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statement and views that arecreated with it) and <strong>SAS</strong> data views (views that are created with PROC SQL, the DATAstep, and <strong>SAS</strong>/<strong>ACCESS</strong> software). RLS lets you access <strong>SAS</strong> data sets, <strong>SAS</strong> views, andrelational DBMS data that <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statements define. For morein<strong>for</strong>mation, see the discussion about remote library services in the <strong>SAS</strong>/SHARE User’sGuide.You can use RLS to update relational DBMS tables that are referenced with the<strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statement.In the following example, the <strong>SAS</strong>/<strong>ACCESS</strong> LIBNAME statement makes aconnection to a DB2 database that resides on the remote <strong>SAS</strong>/SHARE serverREMOS390. This LIBNAME statement is submitted in a local <strong>SAS</strong> session. The<strong>SAS</strong>/<strong>ACCESS</strong> engine name is specified in the remote option RENGINE=. The DB2connection option and any LIBNAME options are specified in the remote optionROPTIONS=. Options are separated by a blank space. RLSDB2.EMPLOYEES is a <strong>SAS</strong>data set that references the DB2 table EMPLOYEES.libname rlsdb2 rengine=db2 server=remos390roptions="ssid=db2a authid=testid";proc print data=rlsdb2.employees;run;See Also“Overview of the LIBNAME Statement <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 87LIBNAME Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>When you specify an option in the LIBNAME statement, it applies to all objects (suchas tables and views) in the database that the libref represents. For in<strong>for</strong>mation about

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

Saved successfully!

Ooh no, something went wrong!