BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am facing Performance issues in loading Large data from SAS Dataset to DB2.
For loading 3 million records to DB2 table the elapsed time is 23:29 mins and CPU time is 02:56 mins.
I have used following system options:
compress=yes reuse=yes STATS MEMRPT FULLSTIMER MSGLEVEL=I bufsize=512K bufno=MAX SORTSIZE=MAX UBUFNO = 20;
Both SAS and DB2 are on z/OS.
I tried to use following options for optimization:

1. INSERTBUFF option in LIBNAME for DB2: I receive error ERROR 22-7: Invalid option name INSERTBUFF.

2. DBCOMMIT = 100 option in LIBNAME for DB2: This created problem when no of rows to be inserted to DB2 table are less then mentioned in the DBCOMMIT option. Either it would take abnormaly large amount of time or job would end in error.

3. Used BULKLOAD = YES in proc append. I receive following NOTE: Bulkload append to a DB2 table is not currently supported. Standard row insert is used instead.

Which options should I use to overcome this issue. I need to bring down the elapsed time and also make sure that while loading large amount of data I use DBLOAD utility.
4 REPLIES 4
LinusH
Tourmaline | Level 20
What SAS (and DB2 ) versions do you use?
BULKLOAD has been supported since at least 9.1.3.
Take a look at the documentation for you release, and verify that your installtion/configuration supports bulk-load.

/Linus
Data never sleeps
deleted_user
Not applicable
Hi Linus,
Thanks for your reply.

The SAS Ver is 9.1.3 ServicePack 4, The DB2 version is 9.
As you said it might be some installation/Configuration issue.

Also is there any way in which we can turn off Logging into DB2 transaction log for a particular peice of SAS Load?
LinusH
Tourmaline | Level 20
This is what BULKLOAD probably does.
If you want to turn it off outside bulk-load, it is question for your DB2 DBA.
/Linus
Data never sleeps
SASKiwi
PROC Star
In addition to Linus's comment, I suggest you search the SAS Support site using the keywords DB2 and bulkload. There are lots of resources that will help you.

There are apparently 3 supported methods for bulk loading with the CLI LOAD method being recommended for very large loads. You will find examples of how each of these are used.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1220 views
  • 0 likes
  • 3 in conversation