View previous topic :: View next topic
|
Author |
Message |
DEEPA MANI
New User
Joined: 21 Oct 2022 Posts: 2 Location: India
|
|
|
|
Hi all,
I have a require to start the transaction every day at 2 AM.
I have coded below
Exec cics
Start tran (xxxx)
At hours (02)
Minutes(00)
Seconds(00)
End-exec
With above code the transaction runs exactly at 2. But it starts the transaction again and again from 2AM. The transaction is triggered continously from 2.
Do we have any solution for this |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
If you read the other thread, you would find that there were a number of solutions posted that would work for this. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1205 Location: Dublin, Ireland
|
|
|
|
Assuming you're running your CICS region for a number of days between restarts, my suggestion would be to have a program in PLTPI that does an EXEC CICS START TRANSID('xxxx') AT HOURS(2) MINUTES(0) SECONDS(0) and that the 'xxxx' transaction first issues an EXEC CICS START TRANSID('xxxx') AFTER HOURS(24) before doing any processing. This approach ensures that the next execution is scheduled even if the current one abends. No matter when your region recycles, the task will be scheduled for the next 2am by PLTPI and the task, once launched, will schedule daily re-executions at 2am.
Garry. |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3076 Location: NYC,USA
|
|
|
|
Can you not try using batch JCL ? Or set up mq to trigger transaction at 2am by dropping a dummy message using batch ? |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
maybe Netview can be of use or system automation |
|
Back to top |
|
|
|