| Author | 
		  Message
		 | 
		
		  | Ross | 
		  
		    
			  
				 Posted: Tue Aug 19, 2008 10:12 am    Post subject: Trigger Batch CSQUDLQH | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Aug 19, 2008 12:01 pm    Post subject: Re: Trigger Batch CSQUDLQH | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Mr Butcher | 
		  
		    
			  
				 Posted: Tue Aug 19, 2008 9:52 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Ross | 
		  
		    
			  
				 Posted: Wed Aug 20, 2008 3:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | cschneid | 
		  
		    
			  
				 Posted: Wed Aug 20, 2008 5:04 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bobbee | 
		  
		    
			  
				 Posted: Wed Aug 20, 2008 5:54 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Knight
 
 Joined: 20 Sep 2001 Posts: 546 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | cicsprog | 
		  
		    
			  
				 Posted: Wed Aug 20, 2008 1:52 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Ross | 
		  
		    
			  
				 Posted: Thu Aug 21, 2008 2:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Mr Butcher | 
		  
		    
			  
				 Posted: Thu Aug 21, 2008 4:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Thu Aug 21, 2008 5:26 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ealcantara | 
		  
		    
			  
				 Posted: Thu Sep 04, 2008 5:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 16 May 2005 Posts: 13
  
  | 
		  
		    
			  
				Mr Butcher,
 
 
what do u do to finalize DLQH running as STC ?
 
 
Eros Alcantara | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Mr Butcher | 
		  
		    
			  
				 Posted: Thu Sep 04, 2008 5:23 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Ross | 
		  
		    
			  
				 Posted: Wed Sep 10, 2008 6:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Mr Butcher | 
		  
		    
			  
				 Posted: Thu Sep 11, 2008 12:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 23 May 2005 Posts: 1716
  
  | 
		  
		    
			  
				no _________________ Regards, Butcher | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Ross | 
		  
		    
			  
				 Posted: Fri Sep 12, 2008 7:26 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Centurion
 
 Joined: 15 Jun 2005 Posts: 127 Location: Ireland 
  | 
		  
		    
			  
				Cheers.
 
Thanks for your help. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |