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 Sybase 4 Overview 745specifies the name and location of the Sybase interfaces file. The interfacesfile contains the names and network addresses of all available servers on thenetwork.If you omit this statement, the default action <strong>for</strong> your operating systemoccurs. INTERFACE= is not used in some operating environments. Contactyour database administrator to determine whether it applies to youroperating environment.SYBBUFSZ=number-of-rowsspecifies the number of rows of DBMS data to write to the buffer. If thisstatement is used, the <strong>SAS</strong>/<strong>ACCESS</strong> interface view engine creates a bufferthat is large enough to hold the specified number of rows. This buffer iscreated when the associated database table is read. The interface viewengine uses SYBBUFSZ= to improve per<strong>for</strong>mance.If you omit this statement, no data is written to the buffer.Connection options <strong>for</strong> Sybase are all case sensitive. They are passed to Sybaseexactly as you type them.3 Here are the LIBNAME options that are available with the CONNECT statement.3 DBMAX_TEXT=3 MAX_CONNECTS=3 READBUFF=3 PACKETSIZE=ExampleThis example retrieves a subset of rows from the Sybase INVOICE table. Becausethe WHERE clause is specified in the DBMS query (the inner SELECT statement), theDBMS processes the WHERE expression and returns a subset of rows to <strong>SAS</strong>.proc sql;connect to sybase(server=SERVER1database=INVENTORYuser=testuser password=testpass);%put &sqlxmsg;select * from connection to sybase(select * from INVOICE where BILLEDBY=457232);%put &sqlxmsg;The SELECT statement that is enclosed in parentheses is sent directly to thedatabase and there<strong>for</strong>e must be specified using valid database variable names andsyntax.Autopartitioning Scheme <strong>for</strong> SybaseOverviewFor general in<strong>for</strong>mation about this feature, see “Autopartitioning Techniques in <strong>SAS</strong>/<strong>ACCESS</strong>” on page 57.

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

Saved successfully!

Ooh no, something went wrong!