You can cancel your STIMERM at any time that suits your needs. There is no "should" or "best practice". You must make sure that the exit runs or the STIMERM is canceled before you free any resources that the exit might access (such as your ECB).
When you get control back from STIMERM CANCEL, the exit will not run subsequently (or has already run), so you can free the exit routine's storage. This is true on all supported releases (it was not true long ago). Peter Relson z/OS Core Technology Design ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN