| Author | Message | 
		
		  | dkarpeles | 
			  
				|  Posted: Wed Sep 20, 2006 8:14 am    Post subject: Single quotes in output |   |  | 
		
		  | Newbie
 
 
 Joined: 20 Sep 2006Posts: 2
 
 
 | 
			  
				| Does anyone know how to put single quotes on each output field?  This is a tag delimited messageset in WMQI 2.1.  I need the output to look like: 
 'field'~'field'~'etc'~
 
 I can get the ~ ok...but not sure about the quotes.  Thanks.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | vennela | 
			  
				|  Posted: Wed Sep 20, 2006 10:05 am    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 11 Aug 2002Posts: 4055
 Location: Hyderabad, India
 
 | 
			  
				| I don't know a lot but: Instead of using the delimiter as ~, use '~'
 Now use just ' for the beginning and ending of the message.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kimbert | 
			  
				|  Posted: Wed Sep 20, 2006 11:12 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 29 Jul 2003Posts: 5543
 Location: Southampton
 
 | 
			  
				| 
  You can do this by setting the Group Indicator and Group Terminator for the outermost complex type to ' (single quote). 
	| Quote: |  
	| Now use just ' for the beginning and ending of the message. |  |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Wed Sep 20, 2006 11:30 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| And hope that single-quote doesn't appear in any of your fields. _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | dkarpeles | 
			  
				|  Posted: Wed Sep 20, 2006 12:14 pm    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 20 Sep 2006Posts: 2
 
 
 | 
			  
				| Yeah...I tried that '~' in the messageset but unfortunately the output could look like this: 
 HEADER~'DATA'~'DATA2'~~~' '~~~'DATA3'~'ETC'...
 
 so I't almost like I need to put the quotes right on the actual field.  So do I expand each field length by 2 to accomodate?  Or is there a better way?  Thanks for your help.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | wschutz | 
			  
				|  Posted: Wed Sep 20, 2006 1:09 pm    Post subject: |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 02 Jun 2005Posts: 3316
 Location: IBM (retired)
 
 | 
			  
				| So you don't want the quote around the HEADER field? 
 The top most complex type, which is {HEADER, COMPLEXTYPE2} doesn't have the Group ind/term ... in inner complex type (COMPLEXTYPE2) which is {DATA... ETC) does....
 _________________
 -wayne
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |