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 DB2 Under UNIX and PC Hosts 4 Locking in the DB2 Under UNIX and PC Hosts Interface 475quit;The BL_OPTIONS= option passes DB2 file type modifiers to DB2. Thenorowwarnings modifier indicates that all row warnings about rejected rows are to besuppressed.The following example shows how to append the <strong>SAS</strong> data set, <strong>SAS</strong>FLT.FLT98 to apreexisting DB2 table, ALLFLIGHTS. Because the code specifies BULKLOAD=YES andBL_REMOTE_FILE=, this load uses the DB2 LOAD command.proc append base=db2_air.allflights(BULKLOAD=YESBL_REMOTE_FILE=’/tmp/tmpflt’BL_LOG=’/tmp/fltdata.log’BL_DATAFILE=’/nfs/server/tmp/fltdata.ixf’BL_SERVER_DATAFILE=’/tmp/fltdata.ixf’)data=sasflt.flt98;run;Here, BL_REMOTE_FILE= and BL_SERVER_DATAFILE= are paths relative to theserver. BL_LOG= and BL_DATAFILE= are paths relative to the client.The following example shows how to use the <strong>SAS</strong> data set <strong>SAS</strong>FLT.ALLFLIGHTS tocreate and load a large DB2 table, ALLFLIGHTS. Because the code specifiesBULKLOAD=YES and BL_METHOD=CLILOAD, this operation uses the DB2 CLILOAD interface to the LOAD command.data db2_air.allflights(BULKLOAD=YES BL_METHOD=CLILOAD);set sasflt.allflights;run;In-Database Procedures in DB2 under UNIX and PC HostsIn the third maintenance release <strong>for</strong> <strong>SAS</strong> <strong>9.2</strong>, the following Base <strong>SAS</strong> procedureshave been enhanced <strong>for</strong> in-database processing inside DB2 under UNIX and PC Hosts.FREQRANKREPORTSORTSUMMARY/MEANSTABULATEFor more in<strong>for</strong>mation, see Chapter 8, “Overview of In-Database Procedures,” on page67.Locking in the DB2 Under UNIX and PC Hosts InterfaceThe following LIBNAME and data set options let you control how the DB2 underUNIX and PC Hosts interface handles locking. For general in<strong>for</strong>mation about anoption, see “LIBNAME Options <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong>” on page 92. For additionalin<strong>for</strong>mation, see your DB2 documentation.READ_LOCK_TYPE= ROW | TABLEUPDATE_LOCK_TYPE= ROW | TABLE

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

Saved successfully!

Ooh no, something went wrong!