Previous Page | Next Page

SAS/ACCESS Interface to DB2 Under UNIX and PC Hosts

DBLOAD Procedure Specifics for DB2 Under UNIX and PC Hosts


Key Information

For general information about this feature, see The DBLOAD Procedure for Relational Databases. DB2 under UNIX and PC Hosts examples are available.

SAS/ACCESS Interface to DB2 under UNIX and PC Hosts supports all DBLOAD procedure statements in batch mode. Here are the DBLOAD procedure specifics for the DB2 under UNIX and PC Hosts interface.


Examples

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;

Previous Page | Next Page | Top of Page