| Author | 
		  Message
		 | 
		
		  | EricCox | 
		  
		    
			  
				 Posted: Fri Jan 03, 2014 12:25 pm    Post subject: Default Values in a mapping node using DFDL for Output | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 08 Apr 2011 Posts: 292
  
  | 
		  
		    
			  
				To all,
 
 
It is my understanding that the Default value showing in the DFDL Message Model is currently not working and will be fixed in a later implementation of the DFDL parser.
 
 
Because of this how can I achieve the same behavior in the Mapping Node? Can I use some custom esql? Does anyone have an example of how to do this?
 
 
I don't see any example of  how to do this in the documentation.
 
 
Thanks,
 
EMC | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Fri Jan 03, 2014 9:26 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				use a function like coalesce...
 
if you plan it nicely you can reuse the same function over and over again, passing the 2 arguments....
 
 
Have fun   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | dogorsy | 
		  
		    
			  
				 Posted: Sat Jan 04, 2014 12:54 am    Post subject: Re: Default Values in a mapping node using DFDL for Output | 
				     | 
			   
			 
		   | 
		
		
		   Knight
 
 Joined: 13 Mar 2013 Posts: 553 Location: Home Office 
  | 
		  
		    
			  
				
   
	| EricCox wrote: | 
   
  
	To all,
 
 
It is my understanding that the Default value showing in the DFDL Message Model is currently not working and will be fixed in a later implementation of the DFDL parser.
 
 
Because of this how can I achieve the same behavior in the Mapping Node? Can I use some custom esql? Does anyone have an example of how to do this?
 
 
I don't see any example of  how to do this in the documentation.
 
 
Thanks,
 
EMC | 
   
 
 
what version of WMB are you using ? I have used DFDL defaulting and it works fine for me. What makes you think it does not ? I know it did not work in 8.0.0.0 but was fixed in 8.0.0.1 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | EricCox | 
		  
		    
			  
				 Posted: Mon Jan 06, 2014 6:21 am    Post subject: Reading and Try Again | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 08 Apr 2011 Posts: 292
  
  | 
		  
		    
			  
				FJ,
 
 
Happy New Year FJ.
 
 
After reading more on Friday I see how they want an ESQL Procedure and/or Function to provide this behavior.
 
 
And we are on 8.0.0.2. I will try it again to see if DFDL Default Value is working.
 
 
Thanks very much,
 
EMC | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Jan 07, 2014 5:51 am    Post subject: Re: Reading and Try Again | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| EricCox wrote: | 
   
  
	FJ,
 
 
Happy New Year FJ.
 
 
After reading more on Friday I see how they want an ESQL Procedure and/or Function to provide this behavior.
 
 
And we are on 8.0.0.2. I will try it again to see if DFDL Default Value is working.
 
 
Thanks very much,
 
EMC | 
   
 
 
 
Make sure your effective level is at 8.0.0.2 as well!   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | EricCox | 
		  
		    
			  
				 Posted: Tue Jan 07, 2014 7:29 am    Post subject: Meaning | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 08 Apr 2011 Posts: 292
  
  | 
		  
		    
			  
				FJ,
 
What do you mean 'effective level'?
 
Thanks | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smdavies99 | 
		  
		    
			  
				 Posted: Tue Jan 07, 2014 8:12 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land. 
  | 
		  
		    
			  
				look at the output from 'mqsireportbroker'
 
 
then look at the options for mqsichangebroker especially '-f' _________________ WMQ User since 1999
 
MQSI/WBI/WMB/'Thingy' User since 2002
 
Linux user since 1995
 
 
 
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | EricCox | 
		  
		    
			  
				 Posted: Tue Jan 07, 2014 8:35 am    Post subject: effective level | 
				     | 
			   
			 
		   | 
		
		
		   Master
 
 Joined: 08 Apr 2011 Posts: 292
  
  | 
		  
		    
			  
				Fixpack capability level = '8.0.0.2' (effective level '8.0.0.2')
 
 FYI | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | smdavies99 | 
		  
		    
			  
				 Posted: Tue Jan 07, 2014 8:50 am    Post subject: Re: effective level | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land. 
  | 
		  
		    
			  
				
   
	| EricCox wrote: | 
   
  
	Fixpack capability level = '8.0.0.2' (effective level '8.0.0.2')
 
 FYI | 
   
 
 
 
That is good to know. Just remember to do a mqsichangebroker <broker> -f All 
 
after you upgrade to 8.0.0.3 _________________ WMQ User since 1999
 
MQSI/WBI/WMB/'Thingy' User since 2002
 
Linux user since 1995
 
 
 
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |