If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > OS/ 390 Call a Stored Procedure from QMF

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-14-03, 12:56
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
OS/ 390 Call a Stored Procedure from QMF

OK...I finally wrote a sproc in DB2 on the mainframe (and a trigger and a udf..)

How do you execute the sproc in QMF? I can't figure it out

Should it be as simple as


EXEC owner.SprocName?

AHA
Reply With Quote
  #2 (permalink)  
Old 10-16-03, 15:56
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Re: OS/ 390 Call a Stored Procedure from QMF

OK...how do you call a stored procedure from anywhere?
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #3 (permalink)  
Old 10-16-03, 17:12
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
What do the manuals say?
Reply With Quote
  #4 (permalink)  
Old 10-17-03, 13:09
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
Quote:
Originally posted by Marcus_A
What do the manuals say?
Nothing about QMF...

and it say the syntax is call...but that don't work...

The code builds the proc just fine...but how do you execute it?

Code:
  CALL QUERY_TAB('PERSON');                                  
                                                             
--CREATE PROCEDURE QUERY_TAB                                 
--(IN TABNAME  CHAR(18))                                     
--LANGUAGE SQL                                               
--  BEGIN                                                    
--    DECLARE V_NAME CHAR(18);                               
--    SELECT * FROM SYSIBM.SYSTABLES WHERE NAME = TABNAME;   
--  END
Or can't you execute procs in QMF...I would understand why not...
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
  #5 (permalink)  
Old 11-12-03, 16:33
Brett Kaiser Brett Kaiser is offline
Window Washer
 
Join Date: Nov 2002
Location: Jersey
Posts: 10,303
OK what's the syntax for a call in client server?

PROC syntax in DB2 is painful...

Why isn't as simple as

CREATE PROC myProc
@x int, @y in out
AS

SELECT @y=COUNT(*) FROM SYSCOLUMNS

...or something...
__________________
Brett
8-)

It's a Great Day for America everybody!

dbforums Yak CorralRadio 'Rita
dbForums Member List
I'm Good Once as I ever was

The physical order of data in a database has no meaning.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On