Example -job processing definition for ctmfw utility

A job processing definition is created to implement a FileWatcher job. The file must arrive between 19:00 and 22:00, and be created in the /tmp directory under the name trans.dat. The minimum file size is 100 bytes. The detection process should be performed each minute. The file size is monitored every 10 seconds, and the number of intervals where the file size remains static is 5. If the file is not detected by 22:00, an alert should be sent to Control‑M/EM.

The following table describes the ctmfw parameters:

Parameter

Value

Job Name

FileWatch

File Name

FileWatch

Run as

<control_m_user>

From Time

1900

Command line

ctmfw "\tmp\trans.dat" CREATE 100 60 10 5 180

On Statement/Code processing:

Stmt

*

Code

COMPSTAT=0

Do Cond

file_trans_dat_ok Date: ODAT Sign: +

Stmt

*

Code

COMPSTAT=7

Do Shout

To: Control‑M/EM
Text: "File trans.dat did not arrive on time"

Parent Topic

ctmfw File Watcher utility