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
 

 

Cobol Db2 stroed procedure

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Cobol Db2 stroed procedure
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Sun Jan 17, 2010 10:43 pm    Post subject: Reply to: Cobol Db2 stroed procedure
Reply with quote

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

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

Bill

IBM Redbook link ===> http://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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Jan 18, 2010 4:18 am    Post subject: Reply to: Cobol Db2 stroed procedure
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Mon Jan 18, 2010 2:22 pm    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Mon Jan 18, 2010 2:27 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 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. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts COBOL Programming Sandpit? jodrisco COBOL Programming 6 Wed Apr 12, 2017 3:47 am


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