Watch exit programs
You can implement these exit programs when you use the trace function.
Parent topic:
Example: Watch exit program
Related reference
Example: Watch exit program