Previous Topic: DIAGTRAP—Produce Diagnostic DumpNext Topic: DISPMASK—Display Attribute of MASK


Examples: DIAGTRAP control option

This example triggers a diagnostic dump when ACID DUMPE01 is executing JOB DUMPE01A, and a security error with detailed reason code 075 occurs during a check for an OTRAN resource, while CA Top Secret is executing modules in the TSS Kernel. The command assigns this diagtrap an id of 1, and remains active through a maximum of 2 occurrences where these conditions are detected:

TSS MODIFY(DIAGTRAP(1,ON,KER,DUMPE01,075,OTRAN,DUMPE01A,2))

This example checks for a Security File Services (SFS) error of any kind while processing user EXAMP01. The diagtrap is assigned an id of 7, and will remain active until such an error is detected once.

TSS MODIFY(DIAGTRAP(7,ON,SFS,EXAMP01,255,*,*,1)

This example sets Kernel diagtrap #6 to check any job for any acid against any non‑zero DRC in any resource and also sets the match limit to 1:

TSS MODIFY(DIAGTRAP(6,ON,KER))

This example turns DIAGTRAP number 3 off (as long as number 3 is active):

TSS MODIFY(DIAGTRAP(3,OFF))

This example deletes diagtrap number one:

TSS MODIFY(DIAGTRAP(1,DEL))

This example sets Diagtrap #5 to check against a successful validation (DRC=0) for any ACID executing job DUMPE01A with resource OTRAN. The matchlim defaults to 1:

TSS MODIFY(DIAGTRAP(5,ON,KER,*,0,OTRAN,DUMPE01A)

This example deletes all of the existing diagtraps (whether set “on” or “off”):

TSS MODIFY(DIAGTRAP(ALL,DEL))