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!
STEPS tab - missing string in sysout
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.
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
*Need more info about what OS you are running.