If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > help on qmf proc/db2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-31-11, 23:37
gerry622 gerry622 is offline
Registered User
 
Join Date: May 2011
Posts: 2
help on qmf proc/db2

Hi,

Just want to ask what is the best way to convert this process(we are converting from Mainframe to Unix... but the Db2 server stays on mainframe)...

this is inside a QMF proc:

1) execute a select SQL from a group of tables (in db2)
2) save the selected data to a temporary table
3) inserts the saved data in #2 to a production table (not exactly the same table layout)
*** they said using a temp table in this case speeds up the insert process rather than combining #1 & #3 into just 1 SQL.

... since we are rehosting this process from mainframe to Unix... so in the converted unix process.. what would be the best approach for this:

a) just, combine the SQL of #1 and #3 to be executed once ?

b) or, use an export to an IXF file to replace the temporary table in #2 ? (would this be faster? or is this even possible at all?)

thanks in advance for you help.
Reply With Quote
  #2 (permalink)  
Old 06-01-11, 01:15
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Either would work. Option a) would probably be faster if there was not a huge amount of data. But if there is a lot of data, the load command (assuming you use load instead of import) as part of option b) might be faster than inserts .
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 06-02-11, 06:14
gerry622 gerry622 is offline
Registered User
 
Join Date: May 2011
Posts: 2
Thanks, Marcus... I'll try both options out.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On