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 » Read Data from a Queue

Post new topic  Reply to topic
 Read Data from a Queue « View previous topic :: View next topic » 
Author Message
ddevak
PostPosted: Tue Mar 24, 2009 1:26 pm    Post subject: Read Data from a Queue Reply with quote

Newbie

Joined: 24 Mar 2009
Posts: 1

I am able to copy data from a queue to a VBS file, but I am unable to view this file on the mainframe.

Could someone please let me know how to browse the messages written on a q in the mainframe

Thanks
DDevak
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Mar 24, 2009 1:50 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
I am able to copy data from a queue to a VBS file, but I am unable to view this file on the mainframe.

Be specific. How and where are you trying to view the file? Why can't you view it? Did you get an error message when you tried?
Quote:
Could someone please let me know how to browse the messages written on a q in the mainframe.

I'd visit with the z/OS MQ system admins. They have likely linstalled the ISPF-panel utility to browse queues.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Mar 24, 2009 9:49 pm    Post subject: Re: Read Data from a Queue Reply with quote

Grand High Poobah

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

ddevak wrote:
I am able to copy data from a queue to a VBS file, but I am unable to view this file on the mainframe.


This is more a z/OS question than a WMQ one. There are a number of ways to copy a file to SYSOUT (SyncSort probably best for a VBS IMHO).

ddevak wrote:
Could someone please let me know how to browse the messages written on a q in the mainframe


Compile the browse sample or (IIRC) the ISPF panel has a browse function. Been a while since I used the panels; JCL fan personally.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zhanghz
PostPosted: Wed Mar 25, 2009 5:20 pm    Post subject: Reply with quote

Disciple

Joined: 17 Jun 2008
Posts: 186

don't think you can directly browse this VBS file in the normal way. Trying to browse it in DSLIST gave "Invalid record length" error "Data set LRECL must be > 4 for RECFM=V."

If you want to see the messages in the file, use the CSQUTIL to load the file back to a queue in a qmgr and browse the queue from there.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Mar 25, 2009 6:30 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Or...

Use the IBM-supplied utility IEBGENER to specify the lrecl and blocksize of the input VBS dataset, and send the output to SYSOUT.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
zhanghz
PostPosted: Wed Mar 25, 2009 11:12 pm    Post subject: Reply with quote

Disciple

Joined: 17 Jun 2008
Posts: 186

Hi Bruce, thanks a lot for the information. I thought the message could only be read after loading the file back to a queue.

IEBGENER works like a charm! I dind't know that. Glad I learned something again!

ddevak, can just use IEBGENER, SYSUT2 to SYSOUT, SYSUT1 is the backup file.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Mar 26, 2009 12:26 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

There are various ways to browse queues on a mainframe. Easiest is to use MQ client based programs like MO71, IH03 (RFHUTILC).

If you can't connect clients, then IBM supply some MQ ISPF interfaces (some are support pacs).

Personally I coded a REXX which browsed messages using the MQI to a PS file and then used ISPF browse.

Don't use VBS datasets, try using standard dsorg=PS, recfm=VB datasets if you want to browse them in ISPF.
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 » Read Data from a Queue
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.