If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Sheduling a DB2 stored procedure from controlM

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-04, 11:35
skumar80 skumar80 is offline
Registered User
 
Join Date: Jan 2004
Posts: 2
Sheduling a DB2 stored procedure from controlM

Hi Folks,

I have a stored procedure in DB2 UDB on AIX.
I need to schedule the same in Control-M.

Could anyone tell me is it possible to shedule a stored procedure in Control-M? If yes, how do I do it?

It would be great if someone could provide me the commands for the shell script that executes a stored procedure.

Thanks,
kumar.
Reply With Quote
  #2 (permalink)  
Old 03-18-04, 12:20
Damian Ibbotson Damian Ibbotson is offline
Padawan
 
Join Date: Jun 2002
Location: UK
Posts: 525
Re: Sheduling a DB2 stored procedure from controlM

Quote:
Originally posted by skumar80
Hi Folks,

I have a stored procedure in DB2 UDB on AIX.
I need to schedule the same in Control-M.

Could anyone tell me is it possible to shedule a stored procedure in Control-M? If yes, how do I do it?

It would be great if someone could provide me the commands for the shell script that executes a stored procedure.

Thanks,
kumar.
I have no idea about Control-M but you would call a db2 SP from the command line (or in a shell script) as follows...

Code:
db2 "call yourSpName(inParamValue1, inParamValue2 ...)"
You would need to reference any OUT parameters with '?'s.

Damian
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On