Import filters delivered together with ARB are located in the directory '$ARBHOME/lib/import'. Their file extension has to be '.ift'!
To customize your own import filters, click on the 'Test'-button in the import window (see ´Test import filter´).
Note: If multiple users should be able to use a customized filter, you need to copy that filter from '~/.arb_prop/filter' into '$ARBHOME/lib/import'.
Each of the import filters describes how to analyze and read files of one specific format.
A basic import description file (.ift) looks like this:
[AUTODETECT "Matchpattern"]
BEGIN "Matchpattern"
[KEYWIDTH #Columnnumber]
[AUTOTAG ["TAGNAME"]]
[IFNOTSET x "Reason why x is not set"]+
[SETGLOBAL x "global value"]+
[INCLUDE "file"]+
[DESCRIPTION "text describing import filter"]+
[MATCH "Matchpattern"
[SRT "SRT_STRING"]
[ACI "ACI_STRING"]
[TAG "TAGNAME"]
[WRITE "DB_FIELD_NAME"]
[WRITE_INT "DB_FIELD_NAME"]
[WRITE_FLOAT "DB_FIELD_NAME"]
[APPEND "DB_FIELD_NAME"]
[SETVAR x]
]*
SEQUENCESTART "Matchpattern"
SEQUENCECOLUMN #Columnnumber
[SEQUENCESRT "SRT_STRING"]
[SEQUENCEACI "ACI_STRING"]
SEQUENCEEND "STRING"
[CREATE_ACC_FROM_SEQUENCE]
[DONT_GEN_NAMES]
END "STRING"
or it can pipe the data through any external program PROGRAM to convert it to an already existing format 'exformat' using the following basic design:
[AUTODETECT "Matchpattern"]
SYSTEM "PROGRAM $< $>"
NEW_FORMAT "lib/import/exformat.ift"
$< will be replaced by the input file name $> will ve replaced by the intermediate file name
|