Whoooeeee, sounds interesting. Hmmmm.. actually, it seems to me that the information is vaguely relational, at least. If that's the case, wouldn't it be better to load the flat files into some database tables, manipulate it using normal SQL statements, and then generate any resulting files from there? -gustavo