MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Info on BMC unload

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
nivedita
Beginner


Joined: 04 Nov 2003
Posts: 22
Topics: 15

PostPosted: Tue Nov 25, 2003 11:41 pm    Post subject: Info on BMC unload Reply with quote

BMC unload executes ADUUMAIN.


UNLOAD SHRLEVEL CHANGE CONSISTENT NO QUIESCE
UNLOADDN(SYSRE)
USELRECL YES
SORTDEVT SYSDA
SORTNUM 12
FORMAT EXTERNAL
SELECT A
, B
, C
, D
, E
INTO A CHAR (2)
, B CHAR (4)
, C CHAR (6)
, D CHAR (1)
, E INTEGER EXTERNAL (4)
IF NULL VALUE(0)
FROM WW.TPRDIST
WHERE X = 'Y'
AND Y = '03'
AND Z IN ('005','010','015','020')


In the existing control card hard coding isused on certain fields because incorporating Joins in a BMC unload utility will reduce the performance and it will act like a normal DB2 DSNTIAUL utility.

My queries are:
1. Please clarify in what aspects the BMC unload process will be affected if we introduce a Join.
2. How will the performance impact by introducing Joins /sub selects than
hard coding for the same Volume of data.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12383
Topics: 75
Location: San Jose

PostPosted: Wed Nov 26, 2003 5:45 am    Post subject: Reply with quote

Nivedita,

In general, Joins involve more work than regualar selects as they can lead to a tablespace scan. If the join involves a column which is not a part of the index , the performance is degraded. The hard coding of values on a select statement will remove the extra burden of scanning the tablespace.

The best way to see the compare the queries is to run EXPLAIN for both the queries.

check this topic which discusses FAQ on SQL Statement Performance and Evaluation

http://www.mvsforums.com/helpboards/viewtopic.php?t=587


check this link for Using EXPLAIN to improve SQL performance

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNAPH11/6.4?DT=20010710165542

Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group