Hier mal eine kleine Beschreibung
COL. Files: How do they work?
Problem:
How do I Import an ASCII text file into Notes using a .COL file.?
Solution:
COL files are format files that tell Notes into which field in the Notes Form data should be put.
Below are 2 examples of ASCII files with the associated .COL file and the associated results:
EXAMPLE: 1
INPUT.TXT file (ASCII file)
"Mobile Oil",1992,40000,50000
"Total Oil",1234,3456,1234
INPUT.COL (ASCII file)
TITLE:UNTIL ','
FIELD1:UNTIL ','
FIELD2:UNTIL ','
FIELD3:UNTIL ','
Where the words in RED are fields in an already created Notes Form, the , (comma) is a field delimiter in the ASCII text file and is surrounded by single quotes in the .COL file.
In the example above, if the user did a FILE IMPORT and defined INPUT.TXT as the import file and INPUT.COL as the format file, two records would appear in the Notes database.
EXAMPLE:2
INPUT.TXT (ASCII file)
"Mobile Oil",
1992,40000,50000
"Total Oil",
1234,3456,1234
INPUT.COL (ASCII file)
TITLE:UNTIL ','
FIELD1:UNTIL ','
FIELD2:UNTIL ','
FIELD3:UNTIL ','
Doing File Import in the same way as above would result in 4 records in the Notes database.
NOTE:
In order to use a .COL file on an ASCII file, the following needs to be true of the ASCII data file:
1 - Each line in the text file must be 1 record in the Notes database
2 - If the ASCII file does not have any delimiters i.e., Commas, Spaces etc..
then the contents must be of fixed length.
eknori