My advice : (1) Use an STIMERM exit (2) Use multiple ECBs in the mother task - one for the STIMERM exit to post and another for ad-hoc interrupts/requests (3) WAIT on an ECBLIST instead of just a single ECB (4) You can then examine which ECB pops and take actions accordingly
Rob Scott Lead Developer Rocket Software 77 Fourth Avenue . Suite 100 . Waltham . MA 02451-1468 . USA Tel: +1.781.684.2305 Email: [email protected] Web: www.rocketsoftware.com -----Original Message----- From: IBM Mainframe Assembler List [mailto:[email protected]] On Behalf Of [email protected] Sent: 30 August 2012 16:39 To: [email protected] Subject: Shutting Down a TCB in a STIMERM WAIT I need some help in properly shutting down a Task (TCB) that is in a STIMERM WAIT. STIMERM SET,ID=JID,TOD=JEXPIRAY,WAIT=YES POST REFESH_ECB JID DS F ID RETURNED JEXPIRAY DC X'F1F5F0F0F0F0F0F0' EXPIRATION TIME OF DAY In the Above snipet of code I want to have the task expier after 15:00 Hours and POST another Subtask. Then I do some other work and reissue the STIMERM for the next Time Od Day. My question is how do I properly shutdown This SUBSTASK (TCB) when its in the STIMERM WAIT ? If I use the STIMER CANCEL what should the next sequential instriction be after the STIMERM SET ? What Should I Test For. Can I simply DETACH the SUBTASK while its in the STIMERM WAIT ? I want to avoid using an STIMERM exit routine for this scenario if possible. What do others do to shutdown a TCB that is in a STIMER WAIT. Paul D'Angelo
