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
 

 

Calling Stored procedure from another stored procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Anees2007

New User


Joined: 15 Aug 2007
Posts: 1
Location: Hartford

PostPosted: Tue Feb 19, 2008 7:59 pm    Post subject: Calling Stored procedure from another stored procedure
Reply with quote

Hi,

Iam trying to call a stored procedure from another stored procedure in COBOL. The Calling stored procedure is used to Insert/delete/update the records in DB2 database. The called stored procedure is used to generate a unique system generated number(it works fine i tested this with a sample ASP page).The input field parameters are entered by user from online ASP web pages and passed to SP using DB2SPC.See the sample code.

Exec SQL
Call Storedprocname ( :field1,:field2, :field3:ReturnField)
End Exec

After calling the stored procedure, the ReturnField is inserted along with the other fields that are entered by the user from online screen.

But when i tried binding this stored procedure iam getting a -408.

Iam not sure is something wrong with syntax of Call statement,

your help is very much appreicated.

Thanks
Anees.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Feb 19, 2008 11:02 pm    Post subject:
Reply with quote

Hello Anees and welcome to the forums,

Have you looked up what causes the -408? At the top of the web page there is a "Manuals" link and one of the manuals is DB2 Messages & Codes.

This will give the details of the -408 (which basically says there is a data type incompatability).
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 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 "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm


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