Send mail depending on Oracle function output

All questions about Control-M jobs definitions
Post Reply
User avatar
yllanos
Nouveau
Nouveau
Posts: 4
Joined: 30 Jul 2012 12:00

Send mail depending on Oracle function output

Post by yllanos » 30 Jul 2012 5:49

Hello everybody.

I have a defined Oracle function. This function returns "1" or "0" depending on some internal logic.

I can capture the function's output to a variable when i execute it directly as a stored procedure, but what i really need is Control-M notify me by email ONLY when the output of the function is "1".

I've checked the output of the variable by shouting it/mailing it, so it is working OK.

Summarizing: When output function is 1, then mail, when 0, do nothing.

How can I do this?

Any help would be appreciated.

Post Reply