Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 CICS web service from DB2 Triggers or... kiranprasad DB2 1 Wed Dec 20, 2017 11:10 am
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Query on DB2 WLM stored procedures ashek15 DB2 8 Sun Feb 12, 2017 11:13 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us