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 IndexMainframe, CICS, TXSeriesMA01 z/OS Q-pgm

Post new topicReply to topic
MA01 z/OS Q-pgm View previous topic :: View next topic
Author Message
MQFard
PostPosted: Wed Apr 12, 2006 12:16 pm Post subject: MA01 z/OS Q-pgm Reply with quote

Novice

Joined: 07 Oct 2004
Posts: 17
Location: VSP.COM

I am trying to get messages from a z/OS queue and put them to a sequential or PDS file and vise versa. This utility says that it will do this, but when I code the PARM member in the JCL according to the so-called documentation it sends the messages to SYSOUT and bypasses the file processing. Has anyone used this utility? Or dose anyone have something that I can use to perform this function?

Confused, discouraged and searching for something better!
_________________
To Fard
WebSphere MQ Administrator
Back to top
View user's profile Send private message Send e-mail
DryHeatDave
PostPosted: Wed Apr 12, 2006 12:24 pm Post subject: Reply with quote

Apprentice

Joined: 21 Mar 2006
Posts: 28
Location: Phoenix, AZ

It won't get the utility working - but if your SYSOUT lands on the HELD queue in SDSF, go into the SYSOUT & issue the following primary commands -

PT ODSN dataset.name * MOD
PRINT 1 1234
PRINT CLOSE

substitute a destination dataset name & replace 1234 with the relevant number of messages. ThIs will route the messages to a dataset for you.
_________________
SCJP2
IBM Cert. Solutions Designer for Websphere MQ 5.3
Not a certified mainframer - just been doing it a real long time.
Back to top
View user's profile Send private message
javagate
PostPosted: Thu Apr 13, 2006 3:37 am Post subject: Reply with quote

Disciple

Joined: 15 Nov 2004
Posts: 159

you do not have to use 1234, better you can use

PRINT ODSN 'hlq.xxxxxxxx' * NEW
print
print close

However,

What do you want to do with the messages once in a seq data set?
I used MA13 as samples a while ago but you will have to modify the program.
_________________
WebSphere Application Server 7.0 z/OS &
MQ 6.0. I work with WebSphere in the real world not in some IBM lab.
Back to top
View user's profile Send private message
JT
PostPosted: Thu Apr 13, 2006 5:23 am Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Excuse my inexperience with z/OS, but what's wrong with the CSQUTIL command COPY/SCOPY ?
Back to top
View user's profile Send private message
MQFard
PostPosted: Thu Apr 13, 2006 6:39 am Post subject: More info Reply with quote

Novice

Joined: 07 Oct 2004
Posts: 17
Location: VSP.COM

Hello everyone thanks for replying. What I’d like to do is copy messages from, say Q1 configured in QM “A” on z/OS and put them to Q1 in QM “B” on z/OS. From the documentation in MA01 I got the impression that this utility could get messages, put them in a PDS and put them back to a queue. This is what I’m trying to do.

JT do you have an example of how to use CSQUTIL to perform what I’m trying to do?
_________________
To Fard
WebSphere MQ Administrator
Back to top
View user's profile Send private message Send e-mail
kevinf2349
PostPosted: Thu Apr 13, 2006 7:18 am Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Code:
//*********************************************************************
//*  DISABLE - DISABLE QUEUE FOR PUTS                                 *
//*********************************************************************
//DISABLE  EXEC PGM=CSQUTIL,PARM=('MQDV'),                             
//STEPLIB   DD  DSN=SYS1.SCSQLOAD,DISP=SHR                             
//          DD  DSN=SYS1.SCSQANLE,DISP=SHR                             
//          DD  DSN=SYS1.SCSQAUTH,DISP=SHR                             
//SYSPRINT  DD  SYSOUT=*                                               
//SYSIN     DD  *                                                     
 COMMAND DDNAME(INPUT)                                                 
//INPUT     DD  *                                                     
   ALT QL('YOUR_Q') -                                                 
   PUT(DISABLED)                                                       
//*********************************************************************
//*  BACKUP - PERFORM FUZZY BACKUP OF QUEUE                           *
//*********************************************************************
//BACKUP   EXEC PGM=CSQUTIL,PARM=('MQDV')                             
//STEPLIB   DD  DSN=SYS1.SCSQLOAD,DISP=SHR                             
//          DD  DSN=SYS1.SCSQANLE,DISP=SHR                             
//          DD  DSN=SYS1.SCSQAUTH,DISP=SHR                             
//SYSPRINT  DD  SYSOUT=*                                               
//BACKUP   DD  UNIT=SYSALLDA,VOL=SER=SYSMQ1,
//          DISP=(,CATLG),SPACE=(CYL,(3,4),RLSE),   
//          DSN=QUEUE.BACKUP,
//*         DCB=(RECFM=VBS,BLKSIZE=23200)                                       
//SYSIN     DD  *                                                     
 COPY Q('YOUR_Q') DDNAME(BACKUP)'             
//*********************************************************************
//*  ENABLE  - REENABLE QUEUE FOR PUTS                                *
//*********************************************************************
//ENABLE   EXEC PGM=CSQUTIL,PARM=('MQDV')                             
//STEPLIB   DD  DSN=SYS1.SCSQLOAD,DISP=SHR                             
//          DD  DSN=SYS1.SCSQANLE,DISP=SHR                             
//          DD  DSN=SYS1.SCSQAUTH,DISP=SHR                             
//SYSPRINT  DD  SYSOUT=*                                               
//SYSIN     DD  *                                                     
 COMMAND DDNAME(INPUT)                                                 
//INPUT     DD  *                                                     
   ALT QL('YOUR_Q') -                                                 
   PUT(ENABLED)                                                                               


That will copy messages from your queue to a backup dataset. To reload use :

Code:

//STEPBACK EXEC PGM=CSQUTIL,PARM='MQXX'               
//STEPLIB  DD  DSN=SYS1.SCSQLOAD,DISP=SHR             
//         DD  DSN=SYS1.SCSQANLE,DISP=SHR             
//         DD  DSN=SYS1.SCSQAUTH,DISP=SHR             
//SYSIN    DD  *                                       
LOAD QUEUE('YOUR_Q') DDNAME(INPUT)     
//INPUT    DD  DSN=QUEUE.BACKUP,DISP=SHR 
//SYSPRINT DD  SYSOUT=*                               


Have fun....remember to change your names and stuff to match your site standards.

If you get stuck do what I did....read the manual.
Back to top
View user's profile Send private message
MQFard
PostPosted: Thu Apr 13, 2006 7:35 am Post subject: To Kevinf2349 Reply with quote

Novice

Joined: 07 Oct 2004
Posts: 17
Location: VSP.COM

I want to thank you for the code; I did not appreciate the comment about reading the manual. I’ve been in this business for 25 years and have read a lot of manuals. I monitor several different softwares and thought I could save some time by receiving some help. If you want to help that great but if you feel a need to reticule then your help is not valued. Remember no one knows it all.
_________________
To Fard
WebSphere MQ Administrator
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Apr 13, 2006 7:39 am Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Is it quicker to search the manuals yourself, or to wait for someone else to search the manual, and copy/paste?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Thu Apr 13, 2006 8:00 am Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
if you feel a need to reticule then your help is not valued.


I take it you won't be using the code then? If I really wanted to ridicule you, trust me, you would know it and I wouldn't have taken time to copy and paste the JCL for you.

I too have been in this business a long time (28 years) and I have read a lot of manuals, but when I get 'stuck' on an issue I read even more manuals and try to learn from them. There is no statute of limitations on opening manuals.

Peace out
Back to top
View user's profile Send private message
MQFard
PostPosted: Thu Apr 13, 2006 8:10 am Post subject: Apology Reply with quote

Novice

Joined: 07 Oct 2004
Posts: 17
Location: VSP.COM

You’re right. I apologize for my comments. Thank you for the help. Just under a little pressure.


_________________
To Fard
WebSphere MQ Administrator
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexMainframe, CICS, TXSeriesMA01 z/OS Q-pgm
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.