Sankaranarayanan, Vignesh wrote:

>I'm looking to add a REXX logic to the beginning of an ad-hoc STC. 
>Runs twice in an hour. Problem is, sometimes some instances just hang around 
>due to an XCOM issue. 
>Yes, the *real* answer is to fix the XCOM issue but I'm just handing one thing 
>at a time. 

XCOM? Hmmm, smells like a TCP/IP and/or a firewall problem.
 
>So my idea of handling this is to add a starting step to the STC that does the 
>following in REXX: 
>1. Issue D A,<jobname> 
>2. Find if there are active instances, apart from itself 
>3. Cancel all active instances (sometimes, I found instances from many days 
>ago just hanging around doing nothing) 
>4. REXX exits cleanly so that a new instance runs 

Good. Point 2+3 will not work for your attempt. 

Check Mark Zelden's website for his REXX utility which lists ALL ASIDs 
currently running. Using the output will help you to locate ALL the instances 
and get rid of them.

HTH!

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to