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

DB2 Load - NUMRECS


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

New User


Joined: 09 May 2016
Posts: 43
Location: India

PostPosted: Sun May 01, 2022 1:38 am
Reply with quote

Is accurate estimation of NUMRECS matter in CPU/Elapsed time for DB2 LOAD. The difference in variance of estimation is more than 30% - e.g. loading 130 rows but NUMRECS given as 200. Will it matter - OR if I provide estimation as 150, will it load data any faster? The numbers 200/130 are just for example, actual numbers are much more in millions, the question is more about if accurate estimation of NUMRECS matters?
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 419
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Sun May 01, 2022 4:21 am
Reply with quote

Code:
NUMRECS
Indicates the number of input records for the specified table or table partition.
integer
A positive integer that is used as an estimate of the number of complete input records that are to be loaded into the specified table. The specified number refers to fully assembled input records when CONTINUEIF is used.
Use the NUMRECS keyword for multi-table table spaces to indicate the number of input records that will be loaded into each of the tables or table partitions.

Specifying the number of records improves the sizing of the sort work data sets that the utility requires when indexes are built in parallel. If the LOAD utility underestimates the size of the sort work data sets, the execution of the LOAD utility could fail.

You can also use the NUMRECS keyword when the input data set is located on tape or if only a fraction of the input records will be loaded.

If an integer value is specified on the SORTKEYS keyword at the table-space level, the NUMRECS keyword cannot be specified in the same LOAD statement.

If multiple tables or partitions are loaded in the same LOAD statement, the NUMRECS keyword must be specified either for all of the tables or partitions or for none of the tables or partitions.


www.ibm.com/docs/en/db2-for-zos/12?topic=load-syntax-options-control-statement
Back to top
View user's profile Send private message
Nileshkul

New User


Joined: 09 May 2016
Posts: 43
Location: India

PostPosted: Mon May 02, 2022 6:06 am
Reply with quote

Thanks - so it looks like NUMRECS is just for ensuring memory availability for sorting the records for DB2 LOAD and it will not matter or impact if NUMRECS estimation is much more than actual LOAD record count. Hope I am correct with my understanding.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Thu May 05, 2022 6:48 am
Reply with quote

Pls avoid duplicate posts
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts How to load to DB2 with column level ... DB2 6
No new posts REASON 00D70014 in load utility DB2 6
No new posts DB2 Load - Sort Or order BY DB2 1
No new posts VSAM KSDS CREATION AND LOAD WITH RAND... JCL & VSAM 1
Search our Forums:

Back to Top