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.

<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Sybase 4 Passing <strong>SAS</strong> Functions to Sybase 751BULKCOPY= Y|N;uses the Sybase bulk copy utility to insert rows into a Sybase table. Thedefault value is N.If you specify BULKCOPY=Y, BULKCOPY= calls the Sybase bulk copyutility in order to load data into a Sybase table. This utility groups rows sothat they are inserted as a unit into the new table. Using the bulk copyutility can improve per<strong>for</strong>mance.You use the COMMIT= statement to specify the number of rows in eachgroup (this argument must be a positive integer). After each group of rows isinserted, the rows are permanently saved in the table. While each group isbeing inserted, if one row in the group is rejected, then all rows in that groupare rejected.If you specify BULKCOPY=N, rows are inserted into the new table usingTransact-SQL INSERT statements. See your Sybase documentation <strong>for</strong> morein<strong>for</strong>mation about the bulk copy utility.ExampleThe following example creates a new Sybase table, EXCHANGE, from theDLIB.RATEOFEX data file. (The DLIB.RATEOFEX data set is included in the sampledata that is shipped with your software.) An access descriptor ADLIB.EXCHANGE isalso created, and it is based on the new table. The DBLOAD procedure sends aTransact-SQL GRANT statement to Sybase. You must be granted Sybase privileges tocreate new Sybase tables or to grant privileges to other users.libname adlib ’<strong>SAS</strong>-data-library’;libname dlib ’<strong>SAS</strong>-data-library’;proc dbload dbms=sybase data=dlib.rateofex;server=’server1’;database=’testdb’;user=’testuser’;password=’testpass’;table=EXCHANGE;accdesc=adlib.exchange;rename fgnindol=fgnindolar 4=dolrsinfgn;nulls updated=n fgnindol=n 4=n country=n;load;run;Passing <strong>SAS</strong> Functions to Sybase<strong>SAS</strong>/<strong>ACCESS</strong> Interface to Sybase passes the following <strong>SAS</strong> functions to Sybase <strong>for</strong>processing if the DBMS driver/client that you are using supports the function. Wherethe Sybase function name differs from the <strong>SAS</strong> function name, the Sybase nameappears in parentheses. See “Passing Functions to the DBMS Using PROC SQL” onpage 42 <strong>for</strong> in<strong>for</strong>mation.ABSARCOS (ACOS)ARSIN (ASIN)ATAN

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

Saved successfully!

Ooh no, something went wrong!