subroutine evlistcomb Read the file names of event files (input and output) Read all parameters. Open files Sort them according to DATAMODE Loop over input event files Open merged extension Get keyword values Read selected columns Write them to output file and add CCDNR (= nn) Copy secondary extensions, adding CCDNR to their name. end loop close files end subroutine evlistcomb