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

DSNTEP2 - Maximum queries


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

New User


Joined: 21 Jan 2009
Posts: 84
Location: India

PostPosted: Mon Jul 26, 2010 5:46 pm
Reply with quote

Hi,
Can someone please let me know what is the maximum number of queries that could be run in a DSNTEP2 step in a JCL ??

-Thanks in advance,
Rakesh.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 26, 2010 7:09 pm
Reply with quote

Why would you want to know that?
Did you meet some restrictions?
Back to top
View user's profile Send private message
rakesh1155

New User


Joined: 21 Jan 2009
Posts: 84
Location: India

PostPosted: Tue Jul 27, 2010 3:55 pm
Reply with quote

Yes... Is there a restriction of the number of queries on DSNTEP2 ?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 27, 2010 8:25 pm
Reply with quote

Hello,

What problem did you encounter?

You will get much more useful replies if you post what has actually happened and show the diagnostic information generated by the run. . .

We can ask all sorts of questions to try to get some info, but it all works better if you simply post what has happened. . .
Back to top
View user's profile Send private message
rakesh1155

New User


Joined: 21 Jan 2009
Posts: 84
Location: India

PostPosted: Tue Jul 27, 2010 9:12 pm
Reply with quote

Here's the exact scenario....

For the original requirement, the table-names are variable and are received from a file and the query remains the same.

I thought of using dynamic queries but our DBA didnt approve it.

So, I am writing a program where we build these some queries onto an output file and execute the queries using DSNTEP2 in the next JCL step.

I need to know if there's a limit/restriction to the number of queries that we can put in SYSIN.

Please let me know if there's another possible way of doing this.

-Thanks in advance,
Rakesh.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 27, 2010 9:40 pm
Reply with quote

Hello,

And still no answer to:
Quote:
What problem did you encounter?


I've stacked more than 1,000 queries in to the same batch run. . .

Depending on the queries you have, the issue may be a time-out or queued output being too large.
Back to top
View user's profile Send private message
rakesh1155

New User


Joined: 21 Jan 2009
Posts: 84
Location: India

PostPosted: Wed Jul 28, 2010 2:59 am
Reply with quote

To answer you:
I haven't encountered any problem till now.

I just wanted to know if there are any restrictions so that I can handle it in the program writing these queries.


Thanks a Lot!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jul 28, 2010 3:20 am
Reply with quote

Hello,

None that i'm aware of . . .
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 SORT ERROR PARAMETER VALUE EXCEEDS M... DFSORT/ICETOOL 12
No new posts DSNTEP2 - setting exception DB2 2
No new posts Execute DSNTEP2 in REXX which is call... CLIST & REXX 4
No new posts Increase the Maximum Length of LRECL ... JCL & VSAM 5
No new posts Index related queries DB2 5
Search our Forums:

Back to Top