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 » Trigger Batch CSQUDLQH

Post new topic  Reply to topic
 Trigger Batch CSQUDLQH « View previous topic :: View next topic » 
Author Message
Ross
PostPosted: Tue Aug 19, 2008 10:12 am    Post subject: Trigger Batch CSQUDLQH Reply with quote

Centurion

Joined: 15 Jun 2005
Posts: 127
Location: Ireland

Hi,

I would like to invoke the Dead Letter Handler automatically when messages arrive on the DLQ.
I was thinking of setting Trigger to first, Process called DLQ. InitQ=??
Then define Process DLQ with AppType = MVS and AppID = TSO SUB 'DSN(MEM)'
Would this work?
Any better suggestions?
Thanks,
Ross.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Aug 19, 2008 12:01 pm    Post subject: Re: Trigger Batch CSQUDLQH Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Ross wrote:
Hi,

I would like to invoke the Dead Letter Handler automatically when messages arrive on the DLQ.
I was thinking of setting Trigger to first, Process called DLQ. InitQ=??
Then define Process DLQ with AppType = MVS and AppID = TSO SUB 'DSN(MEM)'
Would this work?
Any better suggestions?
Thanks,
Ross.

Define your rules so that they leave the system DLQ blank and redistribute to multiple error queues in the original DLQ format.
Run the rules with WAIT(YES).

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Mr Butcher
PostPosted: Tue Aug 19, 2008 9:52 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

i did not check MQV7 manuals but from the older mq versions you will need a batch trigger monitor to make mqseries trigger a batch job. there is a sample on the mq supportpac page.
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Ross
PostPosted: Wed Aug 20, 2008 3:32 am    Post subject: Reply with quote

Centurion

Joined: 15 Jun 2005
Posts: 127
Location: Ireland

So it looks like better options are:
1) As abhove with Batch Trigger Monitor running. (MA12)
Is this necessary? Is there a way to have MQ issue the TSO SUB 'dsn' command in ISPF?
2) Run CSQDLQH all the time => WAIT(YES)
I don't want to remove the SYSTEM DLQ option. Don't want to change the current setup too much.

Any other ideas?
Thanks.
Back to top
View user's profile Send private message
cschneid
PostPosted: Wed Aug 20, 2008 5:04 am    Post subject: Reply with quote

Novice

Joined: 22 Mar 2005
Posts: 13

Be advised that there may be resistance to the existence of MA12 as a long-running task in your system.

    - it does not respond to operator commands (other than the usual CANCEL and FORCE sort)
    - there is no provision for configuration change/refresh without stopping and restarting
    - the jobs it submits are not under the control of your job scheduling package


These items may be of no concern to you, but your operations staff, security staff, or z/OS Sysprog(s) may have issues with them. This may be one of those situations where asking first is easier than apologizing later.
Back to top
View user's profile Send private message
bobbee
PostPosted: Wed Aug 20, 2008 5:54 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 545
Location: Tampa

yes it is bettr to ask first, but you can implement MA12 to align with how they would want it to interface with their requirements. At a NY bank we used AFOper way back when. I know people who have said they have it working with CA7.
Back to top
View user's profile Send private message Send e-mail AIM Address
cicsprog
PostPosted: Wed Aug 20, 2008 1:52 pm    Post subject: Reply with quote

Partisan

Joined: 27 Jan 2002
Posts: 347

What's your monitor for MQ?

TMON has a built in DLQ handler. With Omegeamon you can write a Situation and have it send a message to MVS SYSLOG where you Auto Ops software can react upon that DLQ.
Back to top
View user's profile Send private message
Ross
PostPosted: Thu Aug 21, 2008 2:27 am    Post subject: Reply with quote

Centurion

Joined: 15 Jun 2005
Posts: 127
Location: Ireland

I'm prefering the option of running the DLQH with wait = yes. It seems to fit the bill.
I assume it can be run as an STC, but I'll look into this further.

My monitor is MainView.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Aug 21, 2008 4:57 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

yes, the dlqh can run as a stc, we do the same.

Code:

//QMGRDLQH PROC                                                     
//*                                                                 
//* DEAD LETTER HANDLER   STC FOR QMGR QUEUEMANAGER                 
//*                                                                 
//DLQ     EXEC PGM=CSQUDLQH,PARM='QMGR.DEAD.QUEUE QMGR',           
//        TIME=1440                                                 
//STEPLIB  DD   DSN=MQS.SCSQANLE,DISP=SHR                       
//         DD   DSN=MQS.SCSQAUTH,DISP=SHR                       
//         DD   DSN=MQS.SCSQLOAD,DISP=SHR                       
//SYSOUT  DD SYSOUT=*                                               
//SYSIN    DD DISP=SHR,DSN=pds.of.rule.tables(qmgrrulemember)         
//SYSPRINT DD   SYSOUT=*,                                           
//         DCB=(DSORG=PS,RECFM=VBA,LRECL=133,BLKSIZE=137)           
//         PEND                                                     

_________________
Regards, Butcher
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Aug 21, 2008 5:26 am    Post subject: Reply with quote

Poobah

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

Quote:
I assume it can be run as an STC, but I'll look into this further.

The difference between a traditional batch job and a started task is the lack of a JOB statement in a started task. And, of course, the started task takes a START command of some kind.
_________________
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
ealcantara
PostPosted: Thu Sep 04, 2008 5:05 am    Post subject: Reply with quote

Novice

Joined: 16 May 2005
Posts: 13

Mr Butcher,

what do u do to finalize DLQH running as STC ?

Eros Alcantara
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Sep 04, 2008 5:23 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

If you want to stop the DLQH while MQ stays up get-disable the dead letter queue.

the DLQH stops automatically if MQ shuts down (i assume it uses fail-if-quiescing)
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Ross
PostPosted: Wed Sep 10, 2008 6:27 am    Post subject: Reply with quote

Centurion

Joined: 15 Jun 2005
Posts: 127
Location: Ireland

Is there any way to end CSQUDLQH cleanly?
I'm trying to get an operator command other than Cancel!!
And I can't realistically Get Disable the DLQ to do this.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Thu Sep 11, 2008 12:43 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

no
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Ross
PostPosted: Fri Sep 12, 2008 7:26 am    Post subject: Reply with quote

Centurion

Joined: 15 Jun 2005
Posts: 127
Location: Ireland

Cheers.
Thanks for your help.
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 » Trigger Batch CSQUDLQH
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.