Have you tried using XDSCONV, it will convert the HKL file to an MTZ without
much trouble. Is there are reason you want the unmerged HKL file rather than
using XSCALE for scaling and merging? You can choose to leave the data
unmerged in XSCALE but converting it to an MTZ file will automatically merge
the data.