Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

To restart a transaction at 2 AM every Day

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
mukun264

New User


Joined: 01 Jan 2008
Posts: 29
Location: Bangalore

PostPosted: Fri Jun 29, 2012 1:58 pm    Post subject: To restart a transaction at 2 AM every Day
Reply with quote

How to restart the transaction at 2 AM every day or just after 2 AM?
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Fri Jun 29, 2012 2:09 pm    Post subject:
Reply with quote

Restart the transaction do you mean enable??
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jun 29, 2012 2:20 pm    Post subject:
Reply with quote

The Friendly Manual would suggest :

EXEC CICS START TRANSID('xxxx') AT HOURS(02) MINUTES (0)

Garry.
Back to top
View user's profile Send private message
mukun264

New User


Joined: 01 Jan 2008
Posts: 29
Location: Bangalore

PostPosted: Fri Jun 29, 2012 2:23 pm    Post subject:
Reply with quote

I mean suppose:

Today transaction executed at 020000( 02 AM) so after successful execution the transaction should schedule for tomorrow to execute at 02 AM and so on

Hope I explained
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Fri Jun 29, 2012 2:34 pm    Post subject:
Reply with quote

Have a job which executes the command suggested by Garry schedule it
Back to top
View user's profile Send private message
mukun264

New User


Joined: 01 Jan 2008
Posts: 29
Location: Bangalore

PostPosted: Fri Jun 29, 2012 2:40 pm    Post subject:
Reply with quote

I have gone through the manual. there is an drawback of the command.

Suppose the transition execute successfully at 02 and again schedule 02 then cics will execute immediately. i have tested also. the transaction is getting triggered at continuously after 02 AM.


I use below code before end of the transaction XXXX

START TRANSID(XXXX) AT HOURS(02) REQID(‘XXXXID’)



But xxxx is getting triggered every time after 02 AM
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Fri Jun 29, 2012 3:09 pm    Post subject:
Reply with quote

As Pandora-box suggested - have a job submit the command. Have your scheduling software submit the job at 2am.
Back to top
View user's profile Send private message
mukun264

New User


Joined: 01 Jan 2008
Posts: 29
Location: Bangalore

PostPosted: Fri Jun 29, 2012 3:12 pm    Post subject:
Reply with quote

Transaction is getting scheduled in online in same program.
Back to top
View user's profile Send private message
Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 988
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Fri Jun 29, 2012 3:45 pm    Post subject:
Reply with quote

You could modify the transaction so that, at the end, it issues a (short) EXEC CICS DELAY before issuing the EXEC CICS START ....

Garry.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Fri Jun 29, 2012 4:57 pm    Post subject:
Reply with quote

Why not use
Code:
EXEC CICS START TRANSID(xxxx) INTERVAL(240000)
in your program code? You could create a separate program to add to the PLT to start your transaction at 2 AM for the first execution.
Back to top
View user's profile Send private message
mukun264

New User


Joined: 01 Jan 2008
Posts: 29
Location: Bangalore

PostPosted: Fri Jun 29, 2012 8:52 pm    Post subject: Reply to: To restart a transaction at 2 AM every Day
Reply with quote

in ideal scenario this will work to trigger the transaction at interval of 24 hours ( i mean 2 AM), but assume the transaction failed at 2 AM and after correction the issue its triggered at 3 AM then onward transaction will be triggered every time at 3 am.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Fri Jun 29, 2012 8:55 pm    Post subject:
Reply with quote

Why not disable the transaction after run?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Fri Jun 29, 2012 8:55 pm    Post subject:
Reply with quote

So extract the command to start it from the online and stick it into a batch job. You have a problem - you need a fix - a proper fix, not a band-aid. It may be a little bit of extra work but it fixes it properly.
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1529
Location: Andromeda Galaxy

PostPosted: Fri Jun 29, 2012 9:01 pm    Post subject:
Reply with quote

What you can do is have an EXCI intetface calls the transaction and have a RC set for the transaction and return it back to EXCI intetface

so based on Rc from transaction set the return code for the step and disable the transaction

Experts would have better solution
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Fri Jun 29, 2012 9:04 pm    Post subject: Reply to: To restart a transaction at 2 AM every Day
Reply with quote

The Batch part of product CAFC can issue START's of transactions in targeted regions or write an EXCI client program which issues a DPL to a target server program in a given region, which issues a START of the transaction.

There are many ways to do this, as others have suggested, but it might be more controllable via Batch.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Fri Jun 29, 2012 9:26 pm    Post subject:
Reply with quote

It sounds like you're trying to do system design on the fly, which rarely has good results. If the timing is that critical, you either need to have a job submitted by your job scheduler at the correct time each day to implement the CICS transaction (which can be done via JCL command, or FEPI, or by vendor product, or possibly even directly by your scheduler), or you need to handle it within CICS -- for example, write a record to a VSAM file that contains the time stamp the tranaction last ran; you can then use that value to verify the timing and even allow for restarts when necessary.

Shooting down the suggestions people on this forum make because you keep adding "requirements" not stated in your initial post, however, is NOT the way to design the system.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jun 29, 2012 10:06 pm    Post subject:
Reply with quote

Hello,

Is there any Business reason this needs to be run in CICS at 2am every day? Please do NOT say "this is the requirement". It is NOT the requirement. The requirement is to get this process accomplished once a day at 2am (whatever this process does).

If we knew why someone believes this is a proper implementation, we might be able to offer different suggestions.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 29, 2012 10:06 pm    Post subject:
Reply with quote

i read back thru this thread (again!)
and a point comes to mind
that I not so politically correctly stated in another thread.

what event occurs at 0200 every night that this CICS transaction satisfies?

you have available about a billion or so years of computer experience,
so one (or many) may have already
bruised their knuckles on stone wheels
while trying to solve this exact same problem.

so, were we to be privy to the reason you need a cics task started every night a 0200 hrs,
there may float to the surface a solution that has been tried before and works.
an by works,
i mean a procedure that underwent the tests of time,
and the little patches here and there were jammed-in
and it doesn't cause any more problems.

but,
that is just me.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Detailed Transaction History report f... Kyle Carroll CICS 5 Tue Oct 18, 2016 12:42 am
No new posts How to calculate an specific transact... lind sh CICS 2 Tue Sep 13, 2016 9:20 pm
No new posts Start a CDBM transaction whit appropr... lind sh CICS 2 Sun Apr 10, 2016 1:46 pm
No new posts Transaction Profile amitc23 CICS 1 Thu Feb 04, 2016 3:10 pm
No new posts SEQNUM and RESTART zh_lad DFSORT/ICETOOL 2 Tue Aug 25, 2015 8:17 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us