View previous topic :: View next topic
|
Author |
Message |
suma_infy
New User
Joined: 03 Oct 2008 Posts: 25 Location: chennai
|
|
|
|
Hi all,
i have a MQ program which will generate large number of MQ messages which will be residing in the local queue. I want to copy all these MQ messages one by one to a PDS member . Currently i used to open each MQ message and copy manually to a member of a PDS. I want to automate this process.
Is it feasible using REXX?
Is there any other utility is available to achieve this requirement?
Thanks all
Regards,
Suma |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
suma_infy wrote: |
I want to automate this process. Is it feasible using REXX? |
You need to define exactly what your process is, where it needs to run, how it gets initiated, etc. |
|
Back to top |
|
|
zhanghz
New User
Joined: 15 Oct 2008 Posts: 6 Location: Singapore
|
|
|
|
You can code either a cobol program to read each message in the queue and write the message to your dataset. There is a REXX interface for MQ, but I'm not sure if it can read message content. |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Quote: |
There is a REXX interface for MQ, but I'm not sure if it can read message content. |
There is, it's called RXVSAM and it can read message content.
Garry. |
|
Back to top |
|
|
suma_infy
New User
Joined: 03 Oct 2008 Posts: 25 Location: chennai
|
|
|
|
Thanks all.
I used CSQUTIL to copy the messages from the local queue. Job ran successfully but i couldnt open the Output file which is in VBS format with LRECL as 34768. I tried giving different values for LRECL but every time the outfile is created with LRECL as 34768.
I thought of converting VBS file to FB file. But i wanted to know whether there is any means to open VBS file with LRECL as 34768. I tried opening the output file using FILE AID but in vain.
Moreover using CSQUTIL utility all the messages in the queue are written to 1 PS file.
My requirement is to copy each message in the Queue to member of the PDS.
Can someone suggest me the possible solution?
Thanks,
Suma |
|
Back to top |
|
|
zhanghz
New User
Joined: 15 Oct 2008 Posts: 6 Location: Singapore
|
|
|
|
i believe the easiest way is to code a cobol program to read the messages from the queue and copy the content to the pds members.
if the number of messages are not fixed, you may need to code a REXX program to use the MQ REXX interface and dynamically write to pds members.
to me, the VBS file generated by the utility is meant for kind of backup purpose. Don't think you can browse the VBS file. Instead you can load the file back to a queue in a queue manager. But, the messages are back in a queue. |
|
Back to top |
|
|
|