I use STIMERM extensively in my code. But I don't use WAIT=YES.
Add an ecb to control shutting down of the task, then have the task wait
on that ecb. I know you said you didn't want to use an exit, but that
is how this is setup to use...it's how the operating system provides
this service. You need at least two ecbs. One for control, and one for
the exit to post when the time expires. The exit is pretty simple to
code, so if you have gotten this far, you can manage that.
Yes, you can detach the sub-task while in it's wait, but unless you have
an estae to eat the abend, I believe it will produce a dump.
--Dave Day
On 8/30/2012 10:38 AM, [email protected] wrote:
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