|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to write a long running/program task on CICS |
« View previous topic :: View next topic » |
Author |
Message
|
wilsonho3 |
Posted: Tue Feb 13, 2007 1:36 am Post subject: How to write a long running/program task on CICS |
|
|
Voyager
Joined: 20 Nov 2001 Posts: 98 Location: Hong Kong
|
I want to know how can I write a long running task or program on
host. How can I pooling that task on host for an infinite period. Do
I need CICS trigger to initiate that long running task or program
beforehand
Wilson |
|
Back to top |
|
 |
zpat |
Posted: Tue Feb 13, 2007 2:25 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Assuming that it is a CICS transaction and not a batch job, you can use the CICS PLT definition to start it automatically after the CICS region comes up. |
|
Back to top |
|
 |
wilsonho3 |
Posted: Tue Feb 13, 2007 5:28 pm Post subject: |
|
|
Voyager
Joined: 20 Nov 2001 Posts: 98 Location: Hong Kong
|
How is the program look like. Is it a program with an endless get queue
loop or some time interval specified |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Feb 13, 2007 5:42 pm Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
wilsonho3 wrote: |
How is the program look like. Is it a program with an endless get queue
loop or some time interval specified |
It looks like whatever you want it to look like.
It could either technique it depends on what you need it for.
Exactly what is it you are trying to do? Are you wanting it started by the CICS bridge and read a queue all day and only shutdown when the CICS system does? Or do you want it to shutdown whenever it doesn't have work to do? If you have an indefinate wait you will need to code it to accept a shutdown message or you won't get the transaction out cleanly. |
|
Back to top |
|
 |
zpat |
Posted: Wed Feb 14, 2007 12:30 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
It would MQOPEN, MQGET (with WAIT, CONVERT, FAIL_IF_QUIESCING), processing the message and repeat the MQGET.
It should terminate if the queue manager quiesces or perhaps if a particular "shutdown" message is received.
Do not loop without a wait interval on the MQGET, do not perform your own wait. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|