| Author | 
		  Message
		 | 
		
		  | elvis_gn | 
		  
		    
			  
				 Posted: Thu Jun 09, 2005 8:05 am    Post subject: [Solved] CWF error .... ??? | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 08 Oct 2004 Posts: 1905 Location: Dubai 
  | 
		  
		    
			  
				Hi Im using a CWF wire format in one of my message sets.
 
 
The input message has multiple rows and each is to be considered a new message.....
 
 
I have been successful in implementing the requirement but find that the sample data has a LF or CRLF at the end of every row.....
 
 
This is making the parsing go wrong.....
 
 
Where can I set something like a delimiter of the string being a LF or CRLF...(I have made it work for TDS as i could specify the group terminator as LF)
 
 
Please help...
  Last edited by elvis_gn on Sat Jun 11, 2005 10:50 am; edited 1 time in total | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | chanduy9 | 
		  
		    
			  
				 Posted: Thu Jun 09, 2005 11:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Disciple
 
 Joined: 28 Nov 2001 Posts: 177 Location: USA 
  | 
		  
		    
			  
				Hi,
 
 
To handle the multiple rows in CFW, you should know how many records are coming in, based on that your msg need to be repeated, to handle CRLF you can define a variable of binary type. The binary variables take only HEX values so you can use 0D0A. 
 
 
Thanks,
 
Chandra. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | kimbert | 
		  
		    
			  
				 Posted: Fri Jun 10, 2005 1:19 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				| If your data is delimited you should be using TDS, not CWF. CWF does not support delimited data. Or is there some reason why you decided not to use TDS? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | elvis_gn | 
		  
		    
			  
				 Posted: Sat Jun 11, 2005 4:10 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 08 Oct 2004 Posts: 1905 Location: Dubai 
  | 
		  
		    
			  
				Actually the string does not have any delimiters so i did not go for TDS.
 
 
the number of rows is dynamic and they are only seperated by an ENTER( i.e is an LF or CRLF).
 
 
I managed to get the multiple rows, but an getting some box kind of character due to the line feeds....
 
 
chanduy9 can u tell me what is this 0D0A....???
 
 
Thx. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Sat Jun 11, 2005 5:36 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				Carriage Return / Line feed *is* a delimiter.
 
 
If you do not have in the message an indicator of how many records are in the message, you can not use CWF.
 
 
0D0A is the hex value for CR/LF. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |