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

Cobol Db2 stroed procedure


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arun.gopal
Warnings : 1

New User


Joined: 25 Jul 2006
Posts: 9
Location: Kerala, India

PostPosted: Sun Jan 17, 2010 7:55 pm
Reply with quote

Hi All,

Can any one tell me
1. How to write and compile a COBOL-DB2 stored procedure?
2. What all are the compiler option?
3. How I will call this stored procedure in my COBOL program?


Thanks in Advance.

NOTE: This is not a duplicate question in the forum since I searched and gone thru all the similar questions in forum and the liks that was given in the answers to that. I didn't find any concrete answers for this.
I need some working examples from who really wrote a COBOL-DB2 SP.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Sun Jan 17, 2010 10:43 pm
Reply with quote

The following post, originally provided by DBZ, includes links to IBM Redbook material -

ibmmainframes.com/viewtopic.php?p=213623&highlight=#213623

Bill

IBM Redbook link ===> www.redbooks.ibm.com
Back to top
View user's profile Send private message
arun.gopal
Warnings : 1

New User


Joined: 25 Jul 2006
Posts: 9
Location: Kerala, India

PostPosted: Mon Jan 18, 2010 12:55 am
Reply with quote

Thanks for the reply, BUT the link that you provided I am already gone thru but didn't get any answer for there... This is already mentioned in my query..

To be more clear, I need a working example of this question,
like
a. What all are the options by which I can create the Stored procedure (Not the commands, like CREATE PROCEDURE),
b. How I will compile that SP?.
c. How should I compile the Cobol program if I need to call this SP? etc.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 18, 2010 4:18 am
Reply with quote

I did read the fact that you had searched all pertinent posts regarding Stored Procedures. But many times members find that the OP's searching was not as thorough as one may think.

However, that's all I can suggest.

Perhaps another member could be of assistance?

Bill
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Jan 18, 2010 2:22 pm
Reply with quote

The SDSNSAMP data set contains samples for developing SQL stored procedures.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jan 18, 2010 2:27 pm
Reply with quote

an additional resource is DB2 for z/OS Application Programming Topics
and
you could join IBM Developerworks which has a number of additonal resources for your use.

questions 1 and 3 are covered in the links provided by Bill,
question 2 is covered in any COBOL Ref Manual (buttons at top of the page).

back to question 1 (and 3) - this is a site specific thing, suggest you speak with the appropriate support group in your organization - or read some of the documentation provided by your organization.
Back to top
View user's profile Send private message
arun.gopal
Warnings : 1

New User


Joined: 25 Jul 2006
Posts: 9
Location: Kerala, India

PostPosted: Mon Jan 18, 2010 7:37 pm
Reply with quote

Thanks....
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top