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
 

 

Stored Procedure Division

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

New User


Joined: 28 May 2008
Posts: 4
Location: mumbai

PostPosted: Sat May 31, 2008 2:21 am    Post subject: Stored Procedure Division
Reply with quote

I am DB2 programmer. I am writing COBOL program to be executing DB2 stored procedure.

I am being adding STORED PROCEDURE DIVISION to my program.

It is not compiling.

Is the STORED PROCEDURE DIVISION being before or after the PROCEDURE DIVISION?
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: Sat May 31, 2008 3:44 am    Post subject:
Reply with quote

Hello

Quote:
I am being adding STORED PROCEDURE DIVISION to my program.
Why did you do this?

Quote:
Is the STORED PROCEDURE DIVISION being before or after the PROCEDURE DIVISION?
Neither - that would be invalid syntax.

Here is an example of a COBOL program that calls a stored procedure.
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dsnapk10/APPENDIX1.4.6.2?SHELF=&DT=20070123230158&CASE=

At the top of the page is an "IBM Manuals" link that has sets of both COBOL and DB2 documentation. I'd suggest you review what you have with what is in the manuals.
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
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 Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
This topic is locked: you cannot edit posts or make replies. Stored procedure on Federated thru DB2 arif677 DB2 6 Tue May 31, 2016 11:48 pm


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