The FileSplitter executable can be found in the Utils sub-directory of the ODEX installation directory. This executable can be configured so that files from the Inland Revenue can be directed to different directories and/or given different filenames, based on either the Sender ID or Tax district/Empref code in the 4* header of an Inland Revenue GFF file.
First, the FileSplitter needs to be configured with where in the file the field you wish to split on is located, and all of the different IDs that may be encountered. This is done by editing the "FileSplitter.cfg" file and can be done with any text editor, such as Notepad.
Within the FileSplitter.cfg, any line starting with a semicolon (;) is a comments line and is ignored when the file is run.
The first thing to edit is the line:
-4*_GFF_RECEPIENT_POSITION=xxxxx
This defines the position of the first character of the field that is to be used to determine to which of your Internal IDs the message was sent.
With a GFF file the default entry is a SENDER ID. Alternatively you can enter the position of the first character of the field containing the Tax district/Empref.
Once this has been set, you need to edit the line below it -
4*_GFF_RECEPIENT_LEN=
This defines how many characters the field you are checking is (by default the RECIPIENT ID is 14 characters).
With these two fields defined, you now need to configure all of the Sender ID or Tax districts/Emprefs which you will be receiving, and where the FileSplitter should place each of these IDs.
This is done by uncommenting the [Customer] section, i.e. by removing the semicolons from the start of the line.
Only the [CUSTOMER], UNIQUEID, NAME and OUTFOLDER are required. The other fields can be left commented out-
[CUSTOMER]
UNIQUEID= This defines the unique code for this customer, i.e. SENDER ID or Tax district/Empref
NAME= This is just a descriptive field to allow you to enter a useful name
E-MAIL= If you are using MAPI e-mail to inform specific users when a file for a particular ID has arrived, the e-mail address is entered here
OUTFOLDER= This is the folder that the file should be placed in
OUTMASK= If this is present, when the file is copied to the OUTFOLDER, the filename will be prefixed with this value
You can add additional customers/IDs by simply copy and pasting the [CUSTOMER] section.