Background transcation that start automatic with interval



Support for CICS/ESA, CICS/TS & Transaction Gateway, CICS Configuration Manager and CICS Performance Analyzer

Background transcation that start automatic with interval

Postby astar01 » Sat Apr 06, 2013 12:01 am

How can I test Background transcation that start automatically with interval
astar01
 
Posts: 3
Joined: Fri Apr 05, 2013 11:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Background transcation that start automaticall with inte

Postby dick scherrer » Sat Apr 06, 2013 12:45 am

Hello and welcome to the forum,

Suggest you provide more complete info so we can help.

Background tasks (batch) are usually started via the system scheduling software.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Background transcation that start automaticall with inte

Postby astar01 » Sat Apr 06, 2013 7:58 am

Thanks a lot for the reply. I need to create the new transaction, that is a background transaction that it will restart itself every 5 mins. I understand that I will have START with Interval, but my question is how I will test it. Will I start it using CECI command or something else. I will also need to send MQ and e-mail from this transaction. I never did something like that. How should I do that and how to test it?
Thanks a lot!
astar01
 
Posts: 3
Joined: Fri Apr 05, 2013 11:50 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Background transcation that start automaticall with inte

Postby Robert Sample » Sat Apr 06, 2013 4:54 pm

You develop and test everything in the transaction running attached to a terminal. When you have everything working as it should, then you change the transaction to run as a background task and interval started. You then talk to your site support group about getting the transaction added to the CICS region PLT. PLT transactions get started during the CICS start up processing, so an interval started transaction running from the PLT will be executed automatically when the region comes up. However, you will need to develop a way to automatically check that your transaction does not abend; one way I've seen in the past is to have your transaction write a timestamp into a VSAM file and have a second (PLT-started) transaction start up and verify that the last timestamp in the VSAM file is within the acceptable time. This transaction also writes its timestamp into the VSAM file, and your transaction checks that timestamp. If either transaction determines that the timestamp is not within the acceptable time limit, it issues an EXEC CICS START TRANSACTION INTERVAL command to restart the other transaction. While not foolproof (if max tasks is reached, for example), this provides most of the needed recoverability for the transaction.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Background transcation that start automaticall with inte

Postby astar01 » Sun Apr 07, 2013 8:46 am

Thank you!
astar01
 
Posts: 3
Joined: Fri Apr 05, 2013 11:50 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CICS

 


  • Related topics
    Replies
    Views
    Last post