macro for concatenating lsm files.