Yup, I have a copy of Mark's program available. Was hoping to find a 
simpler/shorter block of code that would work :)

2+3 won't work... why?

The XCOM bit works 99% of the time, there are just some times that it doesn't 
work. The next run that happens within half an hour goes OK, in most cases.

– Vignesh
Mainframe Infrastructure

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Elardus Engelbrecht
Sent: Thursday, February 04, 2016 1:15 PM
To: [email protected]
Subject: Re: Obtaining current ASID in REXX

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

MARKSANDSPENCER.COM
________________________________
 Unless otherwise stated above:
Marks and Spencer plc
Registered Office:
Waterside House
35 North Wharf Road
London
W2 1NW

Registered No. 214436 in England and Wales.

Telephone (020) 7935 4422
Facsimile (020) 7487 2670

www.marksandspencer.com

Please note that electronic mail may be monitored.

This e-mail is confidential. If you received it by mistake, please let us know 
and then delete it from your system; you should not copy, disclose, or 
distribute its contents to anyone nor act in reliance on this e-mail, as this 
is prohibited and may be unlawful.

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

Reply via email to