File Watcher Job
The File Watcher job enables you to detect the creation or deletion of a file in the time frame that you define.
The following table describes the File Watcher job type attributes.
Attribute |
Description |
---|---|
Run As |
Defines the user name with the authorization to execute the job. This attribute is used by the Control-M security mechanism. Rules:
|
Path |
Defines the pathname of the file that is detected. You can use any of the following wildcards:
|
Mode |
Determines whether to detect creation or deletion of a file as follows:
|
Wildcard Monitoring |
Defines if Control-M monitors the file size when the filename contains wildcards. This parameter is ignored if the filename does not contain a wildcard. |
Minimum Size |
Determines the minimum file size in bytes, KB, MB, or GB. This parameter is ignored if the Path parameter contains wildcards (unless the monitor file size when wildcard is used parameter is set to Y) or if the mode parameter is set to DELETE. Variable Name: %%FTP-MINSIZEx where x is a value between 1 and 5, according to the sequential transfer number. |
File Size Interval |
Determines the interval (in seconds) between attempts to monitor the size of a file after the detection of the file. This parameter is ignored when using wildcards in Path (unless the monitor file size when wildcard is used parameter is set to Y) or when using DELETE mode. |
Iterations |
Determines the number of attempts to monitor file size where the size remains static and greater than or equal to minimum detected size (indicating successful creation of the file). This parameter is ignored when using wildcards in FILE unless the monitor file size when wildcard is used parameter is set to Y) or when using DELETE mode. |
Search Interval |
Determines the interval between successive attempts to detect the existence/deletion of a file (in seconds). |
Time Limit |
Determines the maximum time (in minutes) to execute the process without detecting the file at its minimum size (CREATE) or detecting its deletion (DELETE). If the file is not detected/deleted in this specified time frame, the process terminates with an error return code. Variable Name: %%FTP-TIMELIMITx x indicates a value between 1 and 5, according to the sequential transfer number |
Determines the absolute time span during which the utility monitors the file you want to watch. |
|
Start |
Determines the time when the utility starts monitoring the file, as follows:
|
Stop |
Determines the time when the utility stops watching the file, as follows:
|
Determines the minimum and maximum amounts of time that must have passed since the file you want to watch was last modified. |
|
Minimal Age |
Determines the minimum amount of time that must have passed since the file was last modified, as follows:
Variable Name: %%FTP-FILE_MIN_AGEx x indicates a value between 1 and 5, according to the sequential transfer number |
Maximal Age |
Determines the maximum amount of time that can pass since the file was last modified, as follows:
Variable Name: %%FTP-FILE_MAX_AGEx x indicates a value between 1 and 5, according to the sequential transfer number |