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 » CICS-batch-CICS: need for MQ

Post new topic  Reply to topic
 CICS-batch-CICS: need for MQ « View previous topic :: View next topic » 
Author Message
sumithar
PostPosted: Mon Sep 22, 2008 12:14 pm    Post subject: CICS-batch-CICS: need for MQ Reply with quote

Apprentice

Joined: 13 Jun 2008
Posts: 47

Question- I need to trigger a batch job from the CICS region and "pass" it some data.
I am triggering the job using the initiator facility available in CICS and planning to put the data I need to pass in a DB2 table the batch program can then read.

Is there any merit to using MQ in this equation at all? Any benefits to putting this data on an MQ instead of a DB2 table? I could even put it on a VSAM file right- and use the right share options that I can use it in a batch job which will run while CICS is up...

Likewise if I need to kick off a CICS tran from batch is there any benefit to having the batch program write to an MQ which is set up to trigger a CICS transaction as opposed to using the EXCI?

Thanks
Back to top
View user's profile Send private message
bruce2359
PostPosted: Mon Sep 22, 2008 4:01 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

Another, perhaps simpler option, is to use the JES APIs from within your CICS application to open the JES queue and submit the JCL. Unless you have a specific need to involve MQ or DB2 or whatever...
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
sumithar
PostPosted: Tue Sep 23, 2008 4:16 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2008
Posts: 47

bruce2359 wrote:
Another, perhaps simpler option, is to use the JES APIs from within your CICS application to open the JES queue and submit the JCL. Unless you have a specific need to involve MQ or DB2 or whatever...


I guess 'JES APIs from within your CICS' is what I was talking about when I said " the initiator facility available in CICS"!

And you don't see any need to use MQ to pass data to the batch job then, I might as well use VSAM or a DB2 table instead...

Any thoughts on the other way around? Triggering a CICS tran from w/in a batch job?

Thanks
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Tue Sep 23, 2008 5:36 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

if you already have batch triggering in place, you could use that, just put the data you would like to pass to the batch job to mq queue, use batchtriggerin to start your batch job and you are done. no vsam, no db2, no job submit from cics.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
sumithar
PostPosted: Tue Sep 23, 2008 5:51 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2008
Posts: 47

Mr Butcher wrote:
if you already have batch triggering in place, you could use that, just put the data you would like to pass to the batch job to mq queue, use batchtriggerin to start your batch job and you are done. no vsam, no db2, no job submit from cics.


I actually didn't know I could trigger a batch job from MQ (only knew about triggering a CICS tran). Thanks for that.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Tue Sep 23, 2008 6:30 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

there is a batch trigger monitor supportpac for mq available... check the supportpac pages
_________________
Regards, Butcher
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Sep 23, 2008 6:59 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

Quote:
I need to trigger a batch job from the CICS region and "pass" it some data.

Do you needto trigger the CICS tran/application that submits the JCL? Or is the CICS thing already running when you need to submit the JCL?

If the CICS tran/app is already running, why involve MQ? If the CICS tran/app 'knows' what you need to pass to the batch job, can you include it as instream data in the JCL?

It seems to me that making the data-to-be-passed into an MQ message needlessly involves another subsystem - adds needless complication. If what you need to pass it is bigger than 80 characters (not suitable for instream), then a VSAM file would be a good place to pass the data.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
sumithar
PostPosted: Tue Sep 23, 2008 7:24 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2008
Posts: 47

bruce2359 wrote:
Quote:
I need to trigger a batch job from the CICS region and "pass" it some data.

Do you needto trigger the CICS tran/application that submits the JCL? Or is the CICS thing already running when you need to submit the JCL?

If the CICS tran/app is already running, why involve MQ? If the CICS tran/app 'knows' what you need to pass to the batch job, can you include it as instream data in the JCL?

It seems to me that making the data-to-be-passed into an MQ message needlessly involves another subsystem - adds needless complication. If what you need to pass it is bigger than 80 characters (not suitable for instream), then a VSAM file would be a good place to pass the data.


Bruce,
Thanks- you have kind of said what I wanted to hear . Especially that part of MQ being an additional subsystem. We are trying to set up some MQ best practices and this was one of the questions that came up- the usage of MQ to trigger batch jobs from CICS and the reverse. I was recommending using available z/OS techniques

Thanks!
Back to top
View user's profile Send private message
okearl
PostPosted: Fri Oct 03, 2008 5:03 am    Post subject: Reply with quote

Newbie

Joined: 03 Oct 2008
Posts: 2

MQ Triggering transactions from batch is a popular method to
"START" transactions, but requires a higher degree of complexity
if you need to fully "INTERACT" with transactions and/or navigate
multiple 3270 screens from your batch programs.

Suggest you perform a google search on batch cics
Back to top
View user's profile Send private message
okearl
PostPosted: Fri Oct 03, 2008 5:05 am    Post subject: Reply with quote

Newbie

Joined: 03 Oct 2008
Posts: 2

you might also try the following for additional information:


http://cicswiki.org/cicswiki1/index.php?title=How_do_I_interact_with_a_transaction_from_a_batch_program%3F

http://www.cicsworld.com/node/165

http://www.batchcics.com

http://cicswiki.org/cicswiki1/index.php?title=How_do_I_submit_a_batch_JOB_from_a_program%3F
Back to top
View user's profile Send private message
sumithar
PostPosted: Fri Oct 03, 2008 6:17 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2008
Posts: 47

okearl wrote:
you might also try the following for additional information:


http://cicswiki.org/cicswiki1/index.php?title=How_do_I_interact_with_a_transaction_from_a_batch_program%3F

http://www.cicsworld.com/node/165

http://www.batchcics.com

http://cicswiki.org/cicswiki1/index.php?title=How_do_I_submit_a_batch_JOB_from_a_program%3F


Thanks for those links. I will check them out
Back to top
View user's profile Send private message
zhanghz
PostPosted: Mon Oct 06, 2008 2:16 am    Post subject: Reply with quote

Disciple

Joined: 17 Jun 2008
Posts: 186

adding MQ will not only make your programs more complex but also cost you more..

anyway, why use MQ if you already have ways of triggering batch programs from online and vice versa? i don't see the need to use MQ when the programs and data are on the same machine.
Back to top
View user's profile Send private message
sumithar
PostPosted: Mon Oct 06, 2008 4:12 am    Post subject: Reply with quote

Apprentice

Joined: 13 Jun 2008
Posts: 47

zhanghz wrote:
adding MQ will not only make your programs more complex but also cost you more..

anyway, why use MQ if you already have ways of triggering batch programs from online and vice versa? i don't see the need to use MQ when the programs and data are on the same machine.


Zhang,
As I said in one of my earlier posts that is kind of the point I am trying to make at work. I have been stressing that MQ is a communication mechanism for disparate/different systems.
Thanks for corroborating!

It's still good to become aware of options, I guess
Rgds
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 » CICS-batch-CICS: need for MQ
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.