All description files of import formats are located in
the directory '$ARBHOME/lib/import'.
Each of these files describe how to analyze the input files.
A basic import description file (.ift) looks like this:
[AUTODETECT "Matchpattern"]
BEGIN "Matchpattern"
[KEYWIDTH #Columnnumber]
[MATCH "Matchpattern"
[SRT "SRT_STRING"]*
[ACI "ACI_STRING"]*
[TAG "TAGNAME"]*
[WRITE "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
|