0 pts.
 execution of multiple querries with SPUFI and QMF tools
hello, how can i execute multiple queeries with the help of tools- SPUFI and QMF respectively. thank you

Software/Hardware used:
ASKED: February 15, 2006  8:51 AM
UPDATED: June 19, 2010  1:22 PM

Answer Wiki:
In SPUFI, end each query with a ; select * from tab1;
Last Wiki Answer Submitted:  February 16, 2006  7:22 am  by  Fskovacs   0 pts.
All Answer Wiki Contributors:  Fskovacs   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Continuing–

In SPUFI terminate each query with a ‘;’

select * from tab1;
select * from tab2;

 0 pts.

 

QMF: I’ve not used it in years but in the past, it was limited to one query at a time if executed interactively though in batch, multiple were allowed. See the manuals (free to download from http://www.ibm.com) for how to set up batch job streams.

SPUFI: to add to what the prior responders entered; if you are including DDL with the queries, you will need a COMMIT after the DDL. For example:

CREATE INDEX ……
;
COMMIT
;
SELECT ……
;

But you do not need the COMMITs between DML. You can INSERT and then SELECT against what you inserted without the COMMITs, just like any any application program.

Bill

 0 pts.

 

In QMF you can save your queries into a PROCEDURE and then
run the procedure.

Ex. a procedure saved as PROC1 can contain the following :

run query Q1 ….

run query Q2 ….

….etc

 0 pts.

 

qmf:one query can be executed at a time,this are create form(changing coloumn names),autocommoit are default option yes.
spufi:multiple querys can be executed at a time,this are not create forms,autocommit yes/no can be set.

 10 pts.