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 

Complexities in unloading a table

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


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Thu Aug 03, 2006 1:43 am    Post subject: Complexities in unloading a table Reply with quote

Hi,

I have got a requirement to reduce the execution time for a particular batch cycle.

The requirement demands that the queries that are used in the program are well-optimized and hence I am not planning to modify the queries. Instead i am planning to unload the table to a dataset and then use the dataset in the program instead of fetching from the table. Please find my queries below:

1.) Will the performance improve if i access the dataset instead of fetching the table.

2.) Does unload involve any complexities? (My understanding is that unloading from a table means that you are just copying the data from the table to a dataset.)

3.) I am planning to use ADUUMAIN bmc utliity. Is there any performance differences between the BMC utlity and the IBM unload utility ? (DSNTIAUL) ?


Thanks in advance.

Vivek.G
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Aug 03, 2006 4:38 am    Post subject: Reply with quote

vivek1983

I have answers to 1 and 2 .

Yes performance improves if we unload the data to a dataset and then the program read the dataset .Because if in the program you are using cursors to retrive huge volume of data that might end up taking a lot of time to execute.Instead that if you unload and then feed to the program that will be more faster .

Unload has lot of features and it is not complex.Unloading the data from a table means you are copying the data to a dataset.
_________________
Shekar
Grow Technically
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Aug 03, 2006 8:04 am    Post subject: Reply with quote

Quote:

I am planning to use ADUUMAIN bmc utliity. Is there any performance differences between the BMC utlity and the IBM unload utility ? (DSNTIAUL) ?


vivek1983,

Technically there isn't much difference in execuetion times for both. However BMC utility offers more options when unloading , like creating a delimited files ....
So if your intention is to read the file as the table then there is no difference.

However with Unload of the table, you will be reading a snapshot of the table at that time. If there are any updates to the table after your unload , you will loose that information. If the updates aren't that critical then you can go ahead with unload and read the flat file in the program. So also remember NOT to code the DCB properties on the unload step as DSNTIAUL automatically calculates them. Look at the syspunch dataset from the unload step to see the position of each column in the unload file.

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
vivek1983
Intermediate


Joined: 20 Apr 2006
Posts: 222
Topics: 24

PostPosted: Sat Aug 05, 2006 12:23 am    Post subject: Reply with quote

Thanks kolusu and shekar for your help.
_________________
Vivek G
--------------------------------------
A dream is just a dream. A goal is a dream with a plan and a deadline. (Harvey Mackay)
Back to top
View user's profile Send private message
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