To generate a macro file, having first given a valid REPORT MACRO template_file command, use the ALPHA FILE syntax to direct your output to the required macro file name. Then output your clash report in any of the usual ways (that is, by using a CHECK, BOXCHECK, CHECKADD or, more probably, OUTPUT command).