A control file (CTL file) is a data set that contains file filter definitions used in a schedule to monitor file transfers. The CTL file can be created in any text editor and can be stored as an MVS PDS member or a sequential data set. When specified in a schedule, the CTL file is read when the schedule is activated and is used to externally build the file filters.
By using a CTL file you can do the following:
The CTL file has the following format:
FILTER NAME=Filename/Transfer ID(Required. Case Sensitive) TYPE=SRC | TGT | ID(Required) NUMBER=1 | n (Optional n=999 (max) ) TGTNODE=target node(Optional) SRCNODE=source node(Optional) MINSIZE=n (Optional n=9999999999 (max) ) MAXSIZE=n (Optional n=9999999999 (max) )
A CTL file must comply with these rules:
FILTER NAME=X TYPE=SRC MINSIZE=10 MAXSIZE=20 MINSIZE=15
The value of MINSIZE is 15.
When you create a CTL file you have to define it to a schedule.
To define a CTL file to a schedule
The File Transfer Schedule List appears.
The Panel Display List appears.
The File Filters panel for the schedule appears.
Specifies the name of the CTL file.
Specifies the type of file. Enter CTL.
Press F3 (File).
The changes to the schedule are saved.
To view the contents of a CTL file
The File Transfer Schedule List appears.
The Panel Display List appears.
The File Filters panel appears.
The CTL file appears.
After you have created the CTL file and specified it in a schedule, you can check the syntax and view the contents of the file.
To check the syntax of a CTL file
The File Transfer Schedule List panel appears.
The Panel Display List appears.
The File Filters panel appears.
The syntax of the file is checked.
Note: You should check the syntax of the file before a schedule is activated, because an invalid CTL file prevents a schedule from being activated.It is recommended that you limit access to CTL files to authorized personnel only.
Filters are uniquely defined by all attributes. Duplicate filters are ignored. You can specify multiple instances of a filter in a CTL file with different attributes. If the multiple instances of the filter have the same attributes, the instances are considered duplicates and only the first instance of the filter is used.