Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

native db2 Stored procedures on Mainframes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: native db2 Stored procedures on Mainframes
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

Senior Member


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

PostPosted: Fri Aug 07, 2015 12:39 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 1 Tue Dec 06, 2016 4:38 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts creating a physical sequential file i... Shaheen Shaik JCL & VSAM 8 Wed Jun 29, 2016 3:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us