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

can we run two queries in same qmf window


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

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Tue Jan 18, 2011 7:17 pm
Reply with quote

is there any way to run two separate query in the same qmf window... as i want both the queries to run back to back.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Jan 18, 2011 8:15 pm
Reply with quote

which qmf? TSO ? for windows V8 ? for workstation V9 ?

Where are you going to view the result ?
Back to top
View user's profile Send private message
Dsingh29

Active User


Joined: 16 Dec 2008
Posts: 132
Location: IBM

PostPosted: Wed Jan 19, 2011 11:16 am
Reply with quote

simply try and test !!!

btw i dont think you can run two quries simultenously in QMF.

when please let us know the results icon_wink.gif
Back to top
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Wed Jan 19, 2011 12:12 pm
Reply with quote

GuyC wrote:
which qmf? TSO ? for windows V8 ? for workstation V9 ?

Where are you going to view the result ?



Sorry for ur inconvenience.
I am using it in TSO.
I want to view the result there only, i mean the QMF window. So can we concatenate two separate qmf queries to run back to back in same QMF(TSO) window?
Say first queriy Locks the table for the particular session and then we process on it.
let me know whether i am clear in my question?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Wed Jan 19, 2011 1:24 pm
Reply with quote

No, you can not write two sql statement in 1 query and run it.

What you can do is write a qmf procedure which runs 2 or more qmf-queries in succession. and then run that procedure.

so you need
- a query with the first sql-statement
- a query with the second sql-statment
- a procedure with two RUN statements.

Check the QMF manual about PROCs or try to figure it out with PF1 it is not so difficult.
Back to top
View user's profile Send private message
muralitharant

New User


Joined: 15 Nov 2006
Posts: 1
Location: Mysore

PostPosted: Tue Feb 01, 2011 2:59 pm
Reply with quote

You can use DB2 Platinum and can run any number of queries simultaneously and see the results one after the other.
Back to top
View user's profile Send private message
nandeshwar

New User


Joined: 11 Oct 2010
Posts: 45
Location: Delhi

PostPosted: Fri May 06, 2011 4:09 pm
Reply with quote

@muralitharant can you please explain how?
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 Sliding window DB2 10
No new posts Index related queries DB2 5
No new posts Need help with below queries DB2 3
No new posts Running queries against OLTP Database DB2 3
No new posts Selective execution of a queries DB2 9
Search our Forums:

Back to Top