Tracing of a data set is terminated for a job when the data set is closed. To terminate tracing without closing the data set, you can stop GTF. You can then resume tracing by starting GTF again with the USR=FF5 parameter.
F IDAVDT,DISABLE=n
where n is
the trace entry for the data set. You can
stop the IDAVDT started task with this command: STOP IDAVDT.