ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » How to write a long running/program task on CICS

Post new topic  Reply to topic
 How to write a long running/program task on CICS « View previous topic :: View next topic » 
Author Message
wilsonho3
PostPosted: Tue Feb 13, 2007 1:36 am    Post subject: How to write a long running/program task on CICS Reply with quote

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
View user's profile Send private message Send e-mail
zpat
PostPosted: Tue Feb 13, 2007 2:25 am    Post subject: Reply with quote

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
View user's profile Send private message
wilsonho3
PostPosted: Tue Feb 13, 2007 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
kevinf2349
PostPosted: Tue Feb 13, 2007 5:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed Feb 14, 2007 12:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » How to write a long running/program task on CICS
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.