If you have GTF set up to write data for one system to multiple data sets, you can use the IPCS COPYTRC subcommand to consolidate the data into one data set. You should do this before you consolidate GTF data from multiple systems with the MERGE or COPYTRC subcommands.
//GTFABC PROC MEMBER=GTFPARM
//IEFPROC EXEC PGM=AHLGTF,REGION=2880K,TIME=1440,
// PARM=('MODE=EXT,DEBUG=NO')
//IEFRDER DD DSNAME=SYS1.GTFTRC,UNIT=SYSDA,
// SPACE=(4096,20),DISP=(NEW,KEEP)
//SYSLIB DD DSN=SYS1.PARMLIB(&MEMBER),DISP=SHR
//GTFOUT1 DD DSNAME=SYS01.DSN1,UNIT=&DEVICE,DISP=&DSPS;
//GTFOUT2 DD DSNAME=SYS01.DSN2,UNIT=&DEVICE,DISP=&DSPS;
//GTFOUT3 DD DSNAME=SYS01.DSN3,UNIT=&DEVICE,DISP=&DSPS;
COPYTRC TYPE(GTF)
INDATASET(SYS01.DSN1,SYS01.DSN2,SYS01.DSN3)
OUTDATASET(GTF.SYS01)
COPYTRC TYPE(GTF)
INDATASET(GTF.SYS01,GTF.SYS02,GTF.SYS03)
OUTDATASET(GTF.ALLSYS)
Note that just one data set per system was used on the COPYTRC command. For best results, if you have more than one data set for a system, you should first consolidate those using a separate instance of the COPYTRC command.
GTFTRACE DSNAME(ALLSYS)