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

DB2 Stored Procedures


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ananya

New User


Joined: 26 Feb 2004
Posts: 19
Location: Chennai

PostPosted: Thu Feb 26, 2004 5:10 pm
Reply with quote

Dear All,

1. Can anybody explain me what a Stored Proc is ?

2. Also provide me with a Sample Functional code of how a Stored Proc would look like?

3. Also example (APPLICATIONS)of where the Stored Procs are used widely.

Thanks in advance

Cheers
Ananya.
Back to top
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Thu Feb 26, 2004 5:30 pm
Reply with quote

Hello Ananya,

Check out the link below for more details on Stored Procedures.

Getting started with DB2 Stored procedures

Hope this helps,

Regards
Mayuresh Tendulkar
Back to top
View user's profile Send private message
Ananya

New User


Joined: 26 Feb 2004
Posts: 19
Location: Chennai

PostPosted: Wed Mar 17, 2004 2:51 pm
Reply with quote

Dear All,

1. Can anyone tell me how to write a Stored Proc for DB2-SQL application?

2. I would be pleased if someone can give me a SAMPLE Stored PROC

3. Also provide me the link for converting VSAM to DB2 data using a Stored Proc.


Thanks in advance.

All Views are appreciated.

Cheers
--Ananya
Back to top
View user's profile Send private message
Ravi

New User


Joined: 23 May 2003
Posts: 3
Location: Chennai

PostPosted: Wed Mar 17, 2004 3:12 pm
Reply with quote

1. Can anyone tell me how to write a Stored Proc for DB2-SQL application?
Ans: Using COBOL390 you can create a DB2 stored procedure. am now sure which version is used in PLI.

So if you have COBOL390 installed in your system you can write your own COBOL-DB2 stored procedures.

2. I would be pleased if someone can give me a SAMPLE Stored PROC
Ans: Its alreay being there in the post. If you want it anyway.. I can post that across...no probs..
3. Also provide me the link for converting VSAM to DB2 data using a Stored Proc.
Its just the same as writing a normal VS COBOL II program from copying VSAM to DB2 will a few standard formats to tell that this is a stored procedure.
Back to top
View user's profile Send private message
Ananya

New User


Joined: 26 Feb 2004
Posts: 19
Location: Chennai

PostPosted: Wed Mar 17, 2004 5:06 pm
Reply with quote

Dear Ravi,

Thank u soooo much for the reply. As u promised, kindly send me across the sample Stroed Proc wrriten and called in a COBOL Application.

I will still put it clear for u....

1. Write a Stored Proc.

2. How to call in Cobol

3. Rules to be followed during the application development


Thanks in advance.

Cheers
--Ananya
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 Invoke stored procedure via batch JCL. DB2 2
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts Calling COBOL DB2 program from a COBO... COBOL Programming 2
No new posts user exits in Column Map procedures IBM Tools 0
This topic is locked: you cannot edit posts or make replies. Internal Autonomous Stored Procedure ... DB2 6
Search our Forums:

Back to Top