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.

470 Examples 4 Chapter 15ExamplesThe following example creates a new DB2 table, <strong>SAS</strong>DEMO.EXCHANGE, from theMYDBLIB.RATEOFEX data file. You must be granted the appropriate privileges inorder to create new DB2 tables or views.proc dbload dbms=db2 data=mydblib.rateofex;in=’sample’;user=’testuser’;password=’testpass’;table=sasdemo.exchange;rename fgnindol=fgnindollars4=dollarsinfgn;nulls updated=n fgnindollars=ndollarsinfgn=n country=n;load;run;The following example sends only a DB2 SQL GRANT statement to the SAMPLEdatabase and does not create a new table. There<strong>for</strong>e, the TABLE= and LOADstatements are omitted.proc dbload dbms=db2;in=’sample’;sql grant select on sasdemo.exchangeto testuser;run;Passing <strong>SAS</strong> Functions to DB2 Under UNIX and PC Hosts<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under UNIX and PC Hosts passes the following <strong>SAS</strong>functions to DB2 <strong>for</strong> processing if the DBMS driver or client that you are usingsupports this function. Where the DB2 function name differs from the <strong>SAS</strong> functionname, the DB2 name appears in parentheses. For more in<strong>for</strong>mation, see “PassingFunctions to the DBMS Using PROC SQL” on page 42.ABSARCOS (ACOS)ARSIN (ASIN)ATANAVGBYTE (CHAR)CEIL (CEILING)COMPRESS (REPLACE)COSCOSHCOUNT (COUNT_BIG)DAY (DAYOFMONTH)EXP

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

Saved successfully!

Ooh no, something went wrong!