Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
DB2 Stored Procedures

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
Ananya

New User


Joined: 26 Feb 2004
Posts: 21
Location: Chennai

PostPosted: Thu Feb 26, 2004 5:10 pm    Post subject: DB2 Stored Procedures
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
References
PostPosted: Thu Feb 26, 2004 5:10 pm    Post subject: Re: DB2 Stored Procedures Reply with quote

mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 257
Location: USA

PostPosted: Thu Feb 26, 2004 5:30 pm    Post subject:
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: 21
Location: Chennai

PostPosted: Wed Mar 17, 2004 2:51 pm    Post subject:
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: 4
Location: Chennai

PostPosted: Wed Mar 17, 2004 3:12 pm    Post subject: DB2 Stored Procedures
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: 21
Location: Chennai

PostPosted: Wed Mar 17, 2004 5:06 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1