IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

extract MQ messages to PDS member


IBM Mainframe Forums -> Java & MQSeries
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
suma_infy

New User


Joined: 03 Oct 2008
Posts: 25
Location: chennai

PostPosted: Thu Mar 05, 2009 9:17 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Mar 05, 2009 9:38 pm
Reply with quote

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
View user's profile Send private message
zhanghz

New User


Joined: 15 Oct 2008
Posts: 6
Location: Singapore

PostPosted: Fri Mar 06, 2009 10:09 am
Reply with quote

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
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1193
Location: Dublin, Ireland

PostPosted: Mon Mar 09, 2009 2:56 pm
Reply with quote

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
View user's profile Send private message
suma_infy

New User


Joined: 03 Oct 2008
Posts: 25
Location: chennai

PostPosted: Tue Mar 10, 2009 7:45 pm
Reply with quote

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
View user's profile Send private message
zhanghz

New User


Joined: 15 Oct 2008
Posts: 6
Location: Singapore

PostPosted: Tue Mar 10, 2009 10:48 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Java & MQSeries

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
No new posts optim extract file - SAS DB2 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
No new posts Searching for a member but don't know... TSO/ISPF 6
Search our Forums:

Back to Top