Thanks Frank! I just noticed that in the resulting file, the contents of the first file are not shifted, whereas the contents of the second file only are shifted. Not what I would like but certainly correct, considering the input files. regards, Etienne