If you're looking for a manual process when you "want to turn the delay
off", you could code the program to check the start code (sounds like
you're already doing this to determine it's at PLT time), and if it's
started at at terminal you could cancel the reqid. You could include logic
to either start or not start the "sleep" process again (e.g. based on
transid or other criteria).
Wiegand" To: CICS-L@LISTSERV.UGA.EDU
COM> Subject: Any way to end delayed CICS task
Sent by: CICS
Please respond to
I have a CICS program that is loaded via the PLTPI. It recognizes it was
started this way and immediately goes to sleep for an hour allowing the
PLTPI to complete its tasks.
After an hour, it reads through a DB2 database and processes the records
there. After one pass through, it goes back to sleep for an hour. If
there are no records in the database, it goes back to sleep for an
hour. This process continues so long as CICS is up.
What I would like to know is if there is a way to interrupt this process
without abending the task? Let's say for whatever reason I want to turn
the delay off and just have the task end after its next pass. Abending the
task will work but causes ROLLBACK to occur which, in this case, is a very
bad thing (causes records that were already processed to be put back into
the database and processed again.).
Thanks in advance for any help or suggestions.