IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

native db2 Stored procedures on Mainframes


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

New User


Joined: 08 Jul 2014
Posts: 24
Location: INDIA

PostPosted: Tue Aug 04, 2015 1:54 pm
Reply with quote

Hi,

I am very new to Mainframes . I am an AS400 developer. I am connecting to mainframe server through IBM Data studio & trying to create a stored procedure.

CREATE PROCEDURE FIRST_PROCEDURE ()
RESULT SETS 1
LANGUAGE SQL
FENCED
COLLID TEST
WLM ENVIRONMENT WLMENV1
RUN OPTIONS 'NOTEST(NONE,*,*,*)'
P1: BEGIN
-- Declare cursor
DECLARE cursor1 CURSOR WITH RETURN FOR

SELECT NAME FROM SYSIBM.SYSTABLES;

-- Cursor left open for client application
OPEN cursor1;
END P1

Error :
M1.FIRST_PROCEDURE - Deploy started.
Calling the build utility ...
[jcc][1085][10939][4.17.30] Invalid CALL syntax. ERRORCODE=-4463, SQLSTATE=42601
M1.FIRST_PROCEDURE - Deploy failed.

I dont know what I m missing here. can someone kindly help me with this.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2507
Location: NY,USA

PostPosted: Fri Aug 07, 2015 12:39 am
Reply with quote

Show us the CALL statement or how are you calling it?
Back to top
View user's profile Send private message
HABBIE

New User


Joined: 08 Jul 2014
Posts: 24
Location: INDIA

PostPosted: Fri Aug 07, 2015 10:28 am
Reply with quote

This error is during compillation.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Schedulers on Mainframes JCL & VSAM 7
No new posts Execute DSNTEP2 in REXX which is call... CLIST & REXX 4
No new posts Mainframes Job opportunity-Full time Mainframe Jobs 0
No new posts IBM z15 mainframes All Other Mainframe Topics 1
No new posts How to DEBUG DB2 Stored Procedures Us... DB2 0

Back to Top