code to produce "three column" files on the cluster