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 DB2 Under z/OS 4 Data Set Options <strong>for</strong> Bulk Loading 515quit;proc print data=temp;run;data _null_;if "&sysdbrc" not in (’0’,’100’) thendo;put ’The DB2 Return Code is: ’ "&sysdbrc";abort abend;end;run;Because the abend prevents the log from being captured, you can capture the <strong>SAS</strong>log by using the <strong>SAS</strong> system option, ALTLOG.Bulk Loading <strong>for</strong> DB2 Under z/OSOverviewBy default, the DB2 under z/OS interface loads data into tables by preparing an SQLINSERT statement, executing the INSERT statement <strong>for</strong> each row, and issuing aCOMMIT statement. You must specify BULKLOAD=YES to start the DB2 LOADutility. You can then bulk-load rows of data as a single unit, which can significantlyenhance per<strong>for</strong>mance. For smaller tables, the extra overhead of the bulk-loadingprocess might slow per<strong>for</strong>mance. For larger tables, the speed of the bulk-loadingprocess outweighs the overhead costs.When you use bulk load, see the SYSPRINT output <strong>for</strong> in<strong>for</strong>mation about the load. Ifyou run the LOAD utility and it fails, ignore the messages in the <strong>SAS</strong> log because theymight be inaccurate. However, if errors existed be<strong>for</strong>e you ran the LOAD utility, errormessages in the <strong>SAS</strong> log might be valid.<strong>SAS</strong>/<strong>ACCESS</strong> Interface to DB2 under z/OS provides bulk loading throughDSNUTILS, an IBM stored procedure that start the DB2 LOAD utility. DSNUTILS isincluded in DB2 Version 6 and later, and it is available <strong>for</strong> DB2 Version 5 in amaintenance release. Because the LOAD utility is complex, familiarize yourself with itbe<strong>for</strong>e you use it through <strong>SAS</strong>/<strong>ACCESS</strong>. Also check with your database administratorto determine whether this utility is available.Data Set Options <strong>for</strong> Bulk LoadingBelow are the DB2 under z/OSbulk-load data set options. All begin with BL_ <strong>for</strong> bulkload. To use the bulk-load facility, you must specify BULKLOAD=YES or all bulk-loadoptions are ignored. (The DB2 under z/OS interface alias <strong>for</strong> BULKLOAD= isDB2LDUTIL=.)3 BL_DB2CURSOR=3 BL_DB2DATACLAS=3 BL_DB2DEVT_PERM=3 BL_DB2DEVT_TEMP=3 BL_DB2DISC=3 BL_DB2ERR=

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

Saved successfully!

Ooh no, something went wrong!