First, the ATTACHing task can just do a DETACH of the child task. However, this 
likely will cause an abend of the child with a S33E abend, which shows up on 
the SYSLOG. I've never done a STIMERM so I cannot really comment on the rest of 
your question. When I do this sort of thing, I have always use STIMER and a 
STIMER exit. I then did a WAIT ECBLIST= where one of the ECBs was a "shutdown" 
ECB. After the WAIT, I would test for the "shutdown" ECB being POST'ed and exit 
normally if it had been.

--
John McKown
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone *
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM


> -----Original Message-----
> From: IBM Mainframe Assembler List [mailto:ASSEMBLER-
> [email protected]] On Behalf Of [email protected]
> Sent: Thursday, August 30, 2012 10:39 AM
> 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

Reply via email to