BMC Communities Banner

This Question is Answered

1 "correct" answer available (10 pts) 1 "helpful" answer available (5 pts)
2 Replies Last post: Nov 6, 2009 3:31 PM by Alex Khutorsky  
Alex Khutorsky Participant 2 posts since
Nov 5, 2009
Currently Being Moderated

Nov 5, 2009 1:09 PM

Control-M FileWatch ctmfw -input

I would really appreciate any help on the file watcher command with use of the ipnut rule file.

 

I am trying to set up a job with ctmfw -input <rule.file> to woatch for multiple trigger files and getting this error in the Sysout after the job ends OK

Syntax error when performing line :'DO_COND PL-PESSTEST905-FILEW-DUMMY-OK +'

 

Here is the command used in the job:

/opt/ctmag/ctm/exe/ctmfw -input /export/home/j979095/filew.rule

here are the contents of the filew.rule file

# MIN_SIZE 0
# MIN_AGE 1min
# FROM_TIME 0000
# MIN_DETECT 3
# WAIT_TIME 5
# CYCLIC_INTERVAL 10
# STOP_TIME 2300
ON_FILEWATCH  /appl1/dropbox/a_mdmftp/out/dummy.txt CREATE 0 3 1 0000 10 N 0
THEN
DO_COND PL-PESSTEST905-FILEW-DUMMY-OK +
DO_OK 0
ELSE
# DO_COND PL-PESSTEST905-FILEW-DUMMY-OK -
DO_NOTOK 1
END_ON
ON_FILEWATCH  /appl1/dropbox/a_mdmftp/out/dummy1.txt CREATE 0 3 1 0000 10 N 0
THEN
DO_COND PL-PESSTEST905-FILEW-DUMMY1-OK +
DO_OK 0
ELSE
# DO_COND PL-PESSTEST905-FILEW-DUMMY1-OK -
DO_NOTOK 1
END_ON
ON_FILEWATCH  /appl1/dropbox/a_mdmftp/out/dummy2.txt CREATE 0 3 1 0000 10 N 0
THEN
DO_COND PL-PESSTEST905-FILEW-DUMMY2-OK +
DO_OK 0
ELSE
# DO_COND PL-PESSTEST905-FILEW-DUMMY2-OK -
DO_NOTOK 1
END_ON

 

 

Thanks.

Alex alexander.x.khutorsky@jpmchase.com

John Haberland Participant 2 posts since
Jul 25, 2008
Currently Being Moderated
1. Nov 5, 2009 10:19 PM in response to: Alex Khutorsky
Re: Control-M FileWatch ctmfw -input

Hello Alex,

 

You are missing part of the DO_COND statment in your filewatcher input file for each do condition you need the following

 

DO_COND <condition name> <date> <+ or ->

 

So an example would be as follows:

 

DO_COND PL-PESSTEST905-FILEW-DUMMY-OK ODAT +

 

Hope this helps.

John

More Like This

  • Retrieving data ...