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 » Reading a message from queue and write to file in Mainframes

Post new topic  Reply to topic
 Reading a message from queue and write to file in Mainframes « View previous topic :: View next topic » 
Author Message
Suresh Gupta
PostPosted: Thu Aug 16, 2007 5:14 am    Post subject: Reading a message from queue and write to file in Mainframes Reply with quote

Apprentice

Joined: 29 Jun 2005
Posts: 46
Location: India

Hi , I need to write a JCL which reads a messages from a queue and writes into a file. but I want to commit the transaction at some specified intervals say after 100 messages .for example MAXUMSGS for a queue manager is 500 and 501messages are there queue I need to write a JCL to read a messages and write into a file , this call will fail because MAXUMSGS attribute at Queue Manager ,can we handle in JCL so that we commit this transaction at every 100 message
_________________
regards,
Suresh
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Vitor
PostPosted: Thu Aug 16, 2007 5:18 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

What application / utility are you using in the JCL to do this? The majority of these allow commit points to be set by one method or another.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
JC_24
PostPosted: Thu Aug 16, 2007 6:17 am    Post subject: Reply with quote

Newbie

Joined: 10 Aug 2007
Posts: 2

Could you please tell what is the utility you are mentioning to commit.The JCL can be used in any application.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 16, 2007 6:25 am    Post subject: Reply with quote

Guest




"I need to write a JCL..."

It appears that you are not a mainframe person.

JCL is a scripting language that causes application programs to be executed. So, there must be a program. The program will decide how many messages to get, and when to commit.

Look to a mainframe person for help with this.
Back to top
Vitor
PostPosted: Thu Aug 16, 2007 6:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

JC_24 wrote:
Could you please tell what is the utility you are mentioning to commit.The JCL can be used in any application.


JCL is not used in an application - JCL runs applications.

It certainly doesn't read MQ queues or write files unaided.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
JC_24
PostPosted: Thu Aug 16, 2007 6:49 am    Post subject: Reply with quote

Newbie

Joined: 10 Aug 2007
Posts: 2

I know the program can only handles, reading the queue and writing into a file. I know there is only DB2 commit as well, which can be handled in the program.

Do you suggest anything, apart from writing a program, we can handle this situation.

Thanks for your reply sir.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 16, 2007 6:56 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

JC_24 wrote:
Do you suggest anything, apart from writing a program, we can handle this situation.


Are you the original poster, doing some kind of Jeckel & Hyde thing?

You either write a program that does this (which on a mainframe will require JCL to run) or you use on of the utilities that can do this.

A search in this forum will turn up a number of discussions on the various methods of file<->message along with their pros and cons.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Reading a message from queue and write to file in Mainframes
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.