The following example
creates a new DB2 table, SASDEMO.EXCHANGE, from the MYDBLIB.RATEOFEX
data file. You must be granted the appropriate privileges in order
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=fgnindollars
4=dollarsinfgn;
nulls updated=n fgnindollars=n
dollarsinfgn=n country=n;
load;
run;
The following example
sends only a DB2 SQL GRANT statement to the SAMPLE database and does
not create a new table. Therefore, the TABLE= and LOAD statements
are omitted.
proc dbload dbms=db2;
in='sample';
sql grant select on sasdemo.exchange
to testuser;
run;