TERMTHRD request
You can use the TERMTHRD request to terminate the DRA thread.
You must fill in the following input fields of the PAPL:
- Field
- Contents
- PAPLFUNC
- PAPLTFUN
- PAPLSFNC
- PAPLTTHD, thread terminate subfunction code
- PAPLCTOK
- DRA request token (output from an INIT request)
- PAPLCTK2
- Thread Token number 2. This is the DRA request token that is output from a SCHED request.
- PAPLTTOK
- The thread token set up by the CCTL
Specifying the following input field is optional:
- Field
- Contents
- PAPLSTAT
- Address of an area where transaction statistical data is returned to the CCTL
- PAPLTECB
- To use the default Suspend exit routine and Resume exit routine, each DRA request must have the field PAPLTECB set with the address of a CCTL ECB to be used if the thread is waited or posted. If your CCTL does not provide Suspend and Resume exit routines, the DRA default exit routines will be used.
The output fields returned in the PAPL to the CCTL are:
- Field
- Contents
- PAPLRETC
- Code returned
- PAPLSTAT
- The address of the transaction statistical data area. This address must be specified on the input field.