IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Start CICS transaction every day at 2AM


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
DEEPA MANI

New User


Joined: 21 Oct 2022
Posts: 2
Location: India

PostPosted: Fri Oct 21, 2022 3:05 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8700
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 21, 2022 6:45 pm
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1202
Location: Dublin, Ireland

PostPosted: Fri Oct 21, 2022 7:06 pm
Reply with quote

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
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3075
Location: NYC,USA

PostPosted: Sat Oct 22, 2022 10:21 pm
Reply with quote

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
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Oct 23, 2022 5:03 pm
Reply with quote

maybe Netview can be of use or system automation
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts How to Login in to cics region and is... CICS 7
No new posts Passing containers on START command CICS 4
No new posts Spoolopen cics CICS 0
No new posts Check if CICS is online in JCL CICS 10
No new posts Using API Gateway from CICS program CICS 0
Search our Forums:

Back to Top