Portal | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
Query on Parallel processing of Stored Procedure

Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message

New User

Joined: 14 Apr 2008
Posts: 78
Location: Mysore

PostPosted: Thu Aug 14, 2014 12:41 pm    Post subject: Query on Parallel processing of Stored Procedure
Reply with quote

Hi All,

I am working on a requirement where in I might get more number of records (Say 500+), for which I need to check the back end db2 table and formulate the results.

For the same record, I need to refer another table for the filter conditions, meaning, using which I need to query the master database.

Now, I cannot go for sequential processing where main module takes first record, queries another table and refer the master table. This could result in more execution time.

In Hadoop, we have concept of assigning the same work to multiple nodes, and each work independently, master program combines the result.

In the same way, can I have a master SP which calls the same common module multiple times with different input parameters, with out waiting for the return code of the each call. May be we can have 5 to 10 calls to the same SP , wait for each to complete and take another batch and issue the next set of calls.

Can you please let me know if my understanding will work? or do you have any other better way of doing this piece of requirement ?

many thanks for your time in this.
Back to top
View user's profile Send private message

Rohit Umarjikar

Global Moderator

Joined: 21 Sep 2010
Posts: 2484
Location: NY,USA

PostPosted: Thu Aug 14, 2014 8:44 pm    Post subject:
Reply with quote

Yes Very well you can do it,
1) Declare your input parms to SP as Varchar of whatever max size you want and then populate this varchar like each record one after another and then give a call to SP. Now SP can unstring this to an array for each record or a key of that record and then process it till it reads all the varchar.

2)Another way is use a temp table and populate that with all the records that you have (500+) and then call the SP and in SP make a join with this temp table and process it.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1


Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS file processing using applicatio... Satish_gsv CICS 3 Sat Jul 11, 2020 4:18 am
No new posts Mainframe ISPREDIT Macro query upendrasri TSO/ISPF 3 Wed May 27, 2020 1:12 pm
No new posts In JCL Procedure how we can execute R... Dhananjayulu Neeli CLIST & REXX 7 Sat May 16, 2020 12:01 am
No new posts DFSORT Output file order query A_programmers DFSORT/ICETOOL 2 Thu Mar 26, 2020 11:59 pm
No new posts Execute DSNTEP2 in REXX which is call... sushanth bobby CLIST & REXX 4 Wed Mar 04, 2020 3:27 pm

Back to Top
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us