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 IQ 4 Examples 7733 SQL functions (SQL_FUNCTIONS=)For more in<strong>for</strong>mation about when and how <strong>SAS</strong>/<strong>ACCESS</strong> passes joins to the DBMS,see “Passing Joins to the DBMS” on page 43.Bulk Loading <strong>for</strong> Sybase IQLoadingBulk loading is the fastest way to insert large numbers of rows into a Sybase IQtable. To use the bulk-load facility, specify BULKLOAD=YES. The bulk-load facilityuses the Sybase IQ LOAD TABLE command to move data from the client to the SybaseIQ database.Here are the Sybase IQ bulk-load data set options. For detailed in<strong>for</strong>mation aboutthese options, see Chapter 11, “Data Set Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>,” on page 203.3 BL_CLIENT_DATAFILE=3 BL_DATAFILE=3 BL_DELETE_DATAFILE=3 BL_DELIMITER=3 BL_OPTIONS=3 BL_SERVER_DATAFILE=3 BL_USE_PIPE=3 BULKLOAD=ExamplesIn this example, the <strong>SAS</strong>FLT.FLT98 <strong>SAS</strong> data set creates and loads FLIGHTS98, alarge Sybase IQ table. For Sybase IQ 12.x, this works only when the Sybase IQ serveris on the same server as your <strong>SAS</strong> session.libname sasflt ’<strong>SAS</strong>-data-library’;libname mydblib sybaseiq host=iqsvr1 server=iqsrv1_usersdb=users user=iqusr1 password=iqpwd1;proc sql;create table mydblib flights98(bulkload=YES)as select * from sasflt.flt98;quit;When the Sybase IQ server and your <strong>SAS</strong> session are not on the same server, youneed to include additional options, as shown in this example.libname sasflt ’<strong>SAS</strong>-data-library’;libname mydblib sybaseiq host=iqsvr1 server=iqsrv1_usersdb=users user=iqusr1 password=iqpwd1;proc sql;create table mydblib flights98( BULKLOAD=YES

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

Saved successfully!

Ooh no, something went wrong!