Author |
Message
|
Suresh Gupta |
Posted: Thu Aug 16, 2007 5:14 am Post subject: Reading a message from queue and write to file in Mainframes |
|
|
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 |
|
 |
Vitor |
Posted: Thu Aug 16, 2007 5:18 am Post subject: |
|
|
 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 |
|
 |
JC_24 |
Posted: Thu Aug 16, 2007 6:17 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Thu Aug 16, 2007 6:25 am Post subject: |
|
|
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 |
Posted: Thu Aug 16, 2007 6:32 am Post subject: |
|
|
 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 |
|
 |
JC_24 |
Posted: Thu Aug 16, 2007 6:49 am Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Thu Aug 16, 2007 6:56 am Post subject: |
|
|
 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 |
|
 |
|