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

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: 3048
Location: NYC,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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SH256/MD5 Checksum in Mainframes JCL JCL & VSAM 7
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts After hours quick-fix support for IBM... Mainframe Jobs 0
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
Search our Forums:

Back to Top