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

Stored Procedure Division


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Sat May 31, 2008 3:44 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Invoke stored procedure via batch JCL. DB2 2
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts Cond parameter and Rc code of a proce... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
No new posts Arithmetic division using Syncsort SYNCSORT 6
Search our Forums:

Back to Top