STEPS tab - missing string in sysout

All questions about Control-M jobs definitions
Post Reply
User avatar
bikin
Nouveau
Nouveau
Posts: 3
Joined: 12 Dec 2011 12:00

STEPS tab - missing string in sysout

Post by bikin » 01 Nov 2013 10:04

Hi,

Do you know if it is possible to set up ON Statement - where Code will be NOT EQUAL to some string then do email?
I want to catch the case when some *STRING* is missing in SYSOUT.
I tried to find any solution in manuals and on forums, but I was not successful.

On
Statement *
Code not qual to *STRING*

Do
Mail

Thanks for your help in advance!

User avatar
reggiefl
Nouveau
Nouveau
Posts: 3
Joined: 05 Oct 2012 12:00

Post by reggiefl » 08 Nov 2013 3:29

I'm not sure if you can check for string value. But as a workaround I would have my logic (if not = string) outside Control-M. i.e. have your logic in the code that is executed by Control-M (e.g. shell script, command file, etc). Within this code set COMPSTAT to some value.
Ex.
IF String <> "THIS"
COMPSTAT = 1
Else
if String = "THAT"
then COMPSTAT = 2
etc...

Then within Control-M, simply check the value of COMPSTAT.
On
Statement *
COMPSTAT = 1
Do
Mail

*Need more info about what OS you are running.

Post Reply