Code Debug IMS detach region facility
When using Code Debug in an IMS environment, there can be times when you need to force the end of an Code Debug test; e.g., a programmer goes home without ending the test. In some releases of IMS, the TSO ID cannot be cancelled while the IMS MPP/BMP/IFP region is still active.
For this case and others, a batch job executing the detach utility program ADSIM012 can be run to force the end of a user's Code Debug IMS MPP, BMP, or IFP test. If desired, the TSO ID can be dropped at this time.
Set up the batch job to execute the ADSIM012 program as shown as follows:
//DETACH EXEC PGM=ADSIM012,
// PARM='...'
//STEPLIB DD DISP=SHR,DSN=CPWR.XT.SLXTLOAD
PARM is where you specify the jobs to be cancelled and is entered as follows:
- To detach a single job name TSOUSR1, enter:
PARM='TSOUSR1' - To detach multiple job names TSOUSR1 and BATCHJB1, enter:
PARM='TSOUSR1,BATCHJB1' - To detach all Code Debug IMS dependent region tasks, enter:
PARM='ALLXPED'
The ADSIM012 program can also be run as a CLIST in the TSO foreground. To get status messages at the terminal, specify WTPMSG on the TSO PROFILE command as shown in the sample CLIST as follows:
CALL 'CPWR.XT.SLXTLOAD(ADSIM012)' 'parm'
Where parm can be a single job name, multiple job names, or ALLXPED as described above.