MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Problem with DB2 Call

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
pai_sunil_bs
Beginner


Joined: 19 Sep 2005
Posts: 21
Topics: 11

PostPosted: Mon Sep 19, 2005 2:42 am    Post subject: Problem with DB2 Call Reply with quote

Hi All,
I have a Online program which has DB2 queries.
I XPED this program.

The query has a DB2 Call.
CALL 'DSNHLI' USING SQL-PLIST4.

I find that the control does not return to the program after the call.

However, I hit F3 and again come back to the same program, I see that the control has come back, the DB2 call is excuted and the control has come to the next statement of the program.

This query runs fine in SPUFI.

All other DB2 queries run in the program runs fine.

Any pointers as how to resolve it.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Mon Sep 19, 2005 8:01 am    Post subject: Reply with quote

Quote:

have a Online program which has DB2 queries.
I XPED this program.
However, I hit F3 and again come back to the same program, I see that the control has come back, the DB2 call is excuted and the control has come to the next statement of the program.


pai_sunil_bs,

Are your sure its PF3? You actually mean PF9 or PF12 ? Btw , the call statements you see actually are inserted by the DB2 pre-compiler.

Quote:

This query runs fine in SPUFI.


I am baffled as to how a call statement ran in spufi .

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pai_sunil_bs
Beginner


Joined: 19 Sep 2005
Posts: 21
Topics: 11

PostPosted: Mon Sep 19, 2005 10:09 am    Post subject: Reply with quote

"Are your sure its PF3?"
YES. and it is not PF9 or PF12

"This query runs fine in SPUFI. "
The DB2 Query is replaced by CALL statements by the Precompiler.
In Xpeditor, We normally see the Query being commented out and is replaced by the CALLs (the one which I mentioned).
Ex:-
SELECT * FROM EMP
will have a corresponding CALL say
CALL 'DSNHLI' USING SQL-PLIST4.

So in my example:-
SELECT * FROM EMP works fine in SPUFI.
While the control never returns to the program after the execution of the CALL(i.e. CALL 'DSNHLI' USING SQL-PLIST4)
Hope I got my question right this time.

Sorry for the confusion.
Back to top
View user's profile Send private message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Sep 19, 2005 12:14 pm    Post subject: Reply with quote

pai_sunil_bs,
You say it's an online program, have you made sure that its pointing to the correct load library?(DSNCLI alias DSNHLI) Moreover, the first sql execution goes thru the Call to connect, why not set a breakpoint at the SQLCODE(F9) and check if the control comes back.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group