COMPSTAT between ranges

All questions about Control-M jobs definitions
Post Reply
User avatar
futre25
Nouveau
Nouveau
Posts: 166
Joined: 11 Aug 2009 12:00

COMPSTAT between ranges

Post by futre25 » 13 Apr 2012 10:40

Hi to all.

We need a range of COMPSTAT, forcing the job OK.
The code 65 to 77, force OK.

We have tried many ways but none validated:

Statament=*
Code = COMPSTAT>64 && COMPSTAT<78
DO OK


As I can do? or form the range

Thanks to all.

User avatar
punky
Nouveau
Nouveau
Posts: 7
Joined: 18 Dec 2007 12:00

Post by punky » 19 Apr 2012 10:31

Hi

Try to catch a message in the job-log or a chain of characters

User avatar
philmalmaison
Nouveau
Nouveau
Posts: 1148
Joined: 08 Jun 2007 12:00
Location: Ile de France

Post by philmalmaison » 30 Apr 2012 2:42

on statement = "test to find" do something
on unix you must do a set -x and set - before and after the searching text area from the script.
This is in case of agents in -x parameters

regards,
Philmalmaison

User avatar
Danny
Nouveau
Nouveau
Posts: 21
Joined: 18 May 2010 12:00
Location: EMEA
Contact:

Post by Danny » 10 May 2012 1:52

You can modify your command or script to set the COMPSTAT like:

On Windows:
YourCommand & IF ERRORLEVEL 65 IF NOT ERRORLEVEL 78 SET ERRORLEVEL=65

Now you just have to check:
Statament=*
Code = COMPSTAT=65
DO OK

On Unix, it something like (dependend of the shell you use):

YourCommand ; if [ $? -ge 64 -a $? -lt 78 ]; then exit 65

Post Reply