| Author | 
		  Message
		 | 
		
		  | nickkirk | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:30 am    Post subject: Specifying the Broker in FileInput 'File name or pattern' | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 26 Sep 2008 Posts: 48
  
  | 
		  
		    
			  
				I have:
 
1) A Broker named MBPROD
 
2) A file named *.MBXXXX.gz
 
 
How can I specify the Broker Name in the FileInput Node Property 'File name or pattern' ?
 
 
Please note, I can override this property at deployment time using mqsiapplybaroverride but for reasons I will not get in to, this does not suffice. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:35 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
			  
				Bar override is your only option to specify the pattern prior to deployment on different environments.
 
 
Why is it so difficult to use the bar override ? What does your manager say about it ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
 
Save $20: Coupon Code: MQSERIES_READER | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nickkirk | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:40 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 26 Sep 2008 Posts: 48
  
  | 
		  
		    
			  
				Regular expressions are supported in the property 'File name or pattern' .
 
Can something like $BrokerName$ be used ? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				
   
	| nickkirk wrote: | 
   
  
	Regular expressions are supported in the property 'File name or pattern' .
 
Can something like $BrokerName$ be used ? | 
   
 
 
 
Only if the documentation says it can be used.
 
 
Sometimes it's not worth struggling to make things smarter than they need to be. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nickkirk | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 26 Sep 2008 Posts: 48
  
  | 
		  
		    
			  
				
   
	| mqjeff wrote: | 
   
  
	
   
	| nickkirk wrote: | 
   
  
	Regular expressions are supported in the property 'File name or pattern' .
 
Can something like $BrokerName$ be used ? | 
   
 
 
 
Only if the documentation says it can be used.
 
 
Sometimes it's not worth struggling to make things smarter than they need to be. | 
   
 
 
 
 
Ah ok, thanks for that.  Never thought of checking the documentation.    | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | nickkirk | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:51 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Apprentice
 
 Joined: 26 Sep 2008 Posts: 48
  
  | 
		  
		    
			  
				| Can a property (i.e. 'File name or pattern' ) reference a UDP ? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:54 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
			  
				
   
	| nickkirk wrote: | 
   
  
	| Can a property (i.e. 'File name or pattern' ) reference a UDP ? | 
   
 
 
 
Who is telling you that you are not permitted to use the documented way to override properties ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
 
Save $20: Coupon Code: MQSERIES_READER | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 3:57 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 5:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| nickkirk wrote: | 
   
  
	| Can a property (i.e. 'File name or pattern' ) reference a UDP ? | 
   
 
 
 
No, and why would you want to? Seriously. I think we're all struggling to see the actual requirement here, and why the obvious answer isn't that useful to you. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | dogorsy | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 5:27 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Knight
 
 Joined: 13 Mar 2013 Posts: 553 Location: Home Office 
  | 
		  
		    
			  
				you can use the LocalEnvironment overrides for the fileoutput node.
 
 
oops, sorry, you were talking about the fileinput node... forget that. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | dogorsy | 
		  
		    
			  
				 Posted: Fri Sep 20, 2013 7:15 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Knight
 
 Joined: 13 Mar 2013 Posts: 553 Location: Home Office 
  | 
		  
		    
			  
				| Having said that, you can use a compute node to set the LocalEnvironment and then trigger a fileRead node (instead of a fileinput) , in the compute node you can use the ESQL BrokerName  property | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |