You can enter the STOP command at any time during GTF processing. The amount of time you let GTF runs depends on your installation and the problem you are trying to capture, but a common time is between 15 and 30 minutes.
If you are running GTF to gather information related to a problem for which a SLIP trap has been defined, you can instruct SLIP to stop all instances of GTF when the trap conditions are satisfied. For additional information, see the SLIP Command documentation in z/OS MVS System Commands.
To stop GTF processing, enter the STOP command. The STOP command must include either the GTF identifier specified in the START command, or the device number of the GTF trace data set if you specified MODE=EXT or MODE=DEFER to direct output to a data set. If you have not specified the GTF identifier in the START command, then those instances of GTF will have the same identifier: the volume serial number.
DISPLAY A,LIST
Figure 1 shows the output produced by the DISPLAY A,LIST command. In this example, the identifier for GTF is EVENT1.
IEE114I 14.51.49 1996.181 ACTIVITY FRAME LAST F E SYS=SY1
JOBS M/S TS USERS SYSAS INITS ACTIVE/MAX VTAM OAS
00000 00003 00000 00016 00000 00000/00000 00000
LLA LLA LLA NSW S VLF VLF VLF NSW S
JES2 JES2 IEFPROC NSW S
GTF EVENT1 IEFPROC NSW S
{STOP|P} identifier
STOP EVENT1
When the STOP command takes effect, the system issues message AHL006I. If the system does not issue message AHL006I, then GTF tracing continues, remaining active until a STOP command takes effect or the next initial program load (IPL). When this happens, you will not be able to restart GTF tracing. In this case, you can use the FORCE ARM command to stop GTF.
If there were several functions started with the same identifier on the START command, using the same identifier on the STOP command will stop all those functions.
If the volume serial number is used on the STOP command, all instances of GTF with trace data directed to a data set on that volume serial are stopped. This is independent of the identifier assigned to each instance of GTF.
STOP 1020
See z/OS MVS System Commands for more information about the STOP and FORCE ARM commands.
START GTF.EXAMPLE,,,(MODE=INT),DSN=NULLFILE
STOP EXAMPLE
S GTF,,,DSNAME=GTF.TEST01,VOLUME=SER=IPCS01,DISP=OLD
S GTF.EX1,DSNAME=GTF.TEST02,VOLUME=SER=IPCS01
IEE114I 09.33.45 1996.183 ACTIVITY 951
JOBS M/S TS USERS SYSAS INITS ACTIVE/MAX VTAM OAS
00001 00006 00001 00015 00002 00001/00300 00000
LLA LLA LLA NSW S VLF VLF VLF NSW S
VTAM VTAM VTAM NSW S JES2 JES2 IEFPROC NSW S
TCAS TCAS TSO OWT S SDJSST1B STEP1 OWT J
GTF 0227 IEFPROC NSW SGTF EX1 IEFPROC NSW S
STOP EX1
STOP 227