IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Optimisation of a Load Card


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Alistair Bangera

New User


Joined: 19 Oct 2007
Posts: 3
Location: Mumbai

PostPosted: Wed Apr 16, 2008 1:58 pm
Reply with quote

Hi,

I have a Load card that loads around, 900 million records into a table. But the Job takes 6750 CPU seconds and costs 850$. This table has 105 partitions. Every time the data would be loaded into one of the 105 partitions. Could you suggest a way I could optimise this load card to reduce the CPU time & cost.

I thought of including the partition no in the load card, but am not sure how to do it and whether it would help.

Following is the Load Card:

LOAD
REPLACE
PRELOAD LOAD
ORDER PRESORTED
SORTNUM 64
LOG NO
INDDN SYSREC
DISCARDS 0
BMCSTATS NO UPDATEDB2STATS NO
COPY NO
COPYPEND NO
INTO TABLE FCDWTBT.TBFCDHBF
(A POSITION (01) DATE EXTERNAL(10)
,B POSITION (11) CHAR (01)
,C POSITION (12) CHAR (06)
,D POSITION (23) CHAR (05)
,E POSITION (28) CHAR (09)
,F POSITION (37) CHAR (01)
,G POSITION (38) CHAR (01)
,H POSITION (39) CHAR (02)
,I POSITION (41) CHAR (01)
,J POSITION (42) CHAR (03)
,K POSITION (45) CHAR (03)
,L POSITION (48) CHAR (04)
,M POSITION (52) DECIMAL
,N POSITION (60) DECIMAL
,O POSITION (68) DECIMAL
,P POSITION (76) DECIMAL
,Q POSITION (79) DECIMAL
,R POSITION (82) DECIMAL
,PARTITION_NO POSITION (85) SMALLINT
,T POSITION (18) CHAR (05))
Back to top
View user's profile Send private message
Alistair Bangera

New User


Joined: 19 Oct 2007
Posts: 3
Location: Mumbai

PostPosted: Thu Apr 17, 2008 1:49 pm
Reply with quote

There is a slight change in the question, every time the data would be loaded into each of the 105 partitions and not just into one partition.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 631
Location: Wisconsin

PostPosted: Fri Apr 18, 2008 3:11 am
Reply with quote

That timing sounds reasonable for the volume you are loading a little under 2 hours of CPU time to load almost 1 billion records isn't bad.
Back to top
View user's profile Send private message
Alistair Bangera

New User


Joined: 19 Oct 2007
Posts: 3
Location: Mumbai

PostPosted: Fri Apr 18, 2008 2:31 pm
Reply with quote

The elapsed time for this job is around 3 hours. Do you think that there is a scope for improvement in processing time & costs if I split the data into files based on partition id, and i load data into each partition separately with these files, by mentioning the partition id in the loadcard.
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 631
Location: Wisconsin

PostPosted: Fri Apr 18, 2008 5:57 pm
Reply with quote

Not really. You have a wall time of 3 hours but cpu time of 1.875 hours. We are still talking 1 billion records. It's gonna take some time and some horsepower to do that.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Simplify SORT CARD to combine INREC a... DFSORT/ICETOOL 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
No new posts Sort card to know that creation date ... DFSORT/ICETOOL 10
No new posts Dynamically build unload and load sta... DB2 14
No new posts SORT CARD meaning please DFSORT/ICETOOL 3
Search our Forums:


Back to Top