Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

extract MQ messages to PDS member

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Java & MQSeries
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    Post subject: extract MQ messages to PDS member
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

Moderator Team Head


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

PostPosted: Thu Mar 05, 2009 9:38 pm    Post subject: Re: extract MQ messages to PDS member
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    Post subject:
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

Active Member


Joined: 08 May 2006
Posts: 992
Location: Dublin, Ireland / Edinburgh, Scotland

PostPosted: Mon Mar 09, 2009 2:56 pm    Post subject:
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    Post subject: Reply to: extract MQ messages to PDS member
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    Post subject: Reply to: extract MQ messages to PDS member
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    IBMMAINFRAMES.com Support Forums -> Java & MQSeries All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us