Previous Topic Next topic Print topic


Old Format of the Rules File

Releases of Enterprise Developer earlier than 2.3 used a different format of the rules file which is described further in this topic.

Note: Micro Focus recommends you use the newer rules file format when defining new override locations as this format provides more flexibility in specifying conditions and catalog record fields. The older file format is still supported for backward compatibility so there is no need to change any existing configuration files.

Each rule in the file specifies: an offset from the beginning of the catalog record, a value that will be found at the offset in records for datasets that match the rule, and a directory in which the files for those datasets will be created.

For example, the following rule:

OFFSET(n) VALUE (MYSTRING) SUBDIR (C:\MYDIR\MYSUBDIR)

will allocate to C:\MYDIR\MYSUBDIR all files that contain the string "MYSTRING" at position n of the catalog record. The catalog structure is defined in the copyfile: mvscatlg.cpy. This is located in %ProgramFiles(x86)%\Micro Focus\Enterprise Developer\cpylib (Windows) or $COBDIR/cpylib (UNIX).

Each rule must occupy only 1 line and all keywords must be in uppercase. Rules are processed in the order that they appear in the file, and the first one that matches is the one that is used; that is, no further rules are consulted for that dataset.

Previous Topic Next topic Print topic