|   | 
	 
  
    | 
RSS Feed - WebSphere MQ Support
 | 
RSS Feed - Message Broker Support
 |   
 
  
	     | 
	 | 
   
 
  
	|  TDS Message Definition Help | 
	« View previous topic :: View next topic »  | 
   
  
  	
	  
		
		
		  | Author | 
		  Message
		 |  
		
		  | satya2481 | 
		  
		    
			  
				 Posted: Thu Jan 17, 2008 6:41 am    Post subject: TDS Message Definition Help | 
				     | 
			   
			 
		   | 
		 
		
		   Disciple
 
 Joined: 26 Apr 2007 Posts: 170 Location: Bengaluru 
  | 
		  
		    
			  
				Hi,
 
Again I am stuck up with modelling a message definition in TDS format. Here is my requirement ...
 
 
I need to create this message set to send the message to one of the COBOL application.
 
 
   
	| Code: | 
   
  
	SendAnswer (Message)
 
   Status (Min=0, Max= -1) -- Complex
 
      RecordType -- Element
 
      Field1 -- Element
 
      Field2 -- Element
 
   Claim (min=0, max=-1) -- Complex
 
      RecordType -- Element
 
      Field1 -- Element
 
      Field2 -- Element
 
      Travel (min=0, max=1) -- Complex
 
         RecordType -- Element
 
         Field1 -- Element
 
         Field2 -- Element
 
      Job (min=1, max=-1) -- Complex
 
         RecordType -- Element
 
         Field1 -- Element
 
         Field2 -- Element
 
         Sundry (min=0, max=-1) -- Complex
 
            RecordType -- Element
 
            Field1 -- Element
 
            Field2 -- Element
 
         PartsLine (min=0, max=-1) -- Complex
 
            RecordType -- Element
 
            Field1 -- Element
 
            Field2 -- Element
 
   Parts (min=0, max=-1) -- Complex
 
      RecordType -- Element
 
      Field1 -- Element
 
      Field2 -- Element | 
   
 
 
 
I am not understandin how to model this message. Because there are no delimiters involved, some of the fields are of fixed length and some are variable length. All fields can not be tagged delimited.
 
 
Each complex type comes on next line and <CR><LF> is used as the delimiter for each record. RecordType element is unique for all the complex elements.
 
 
Can any one suggest some easy way of handling this messge definition. I guess while integrating with COBOL applications such situations might arrive. I know that we can create the message set directly from Cobol copy book, unfortunately I am not having .cpy file also.
 
 
Thank you
 
Satya[/code] _________________ IBM Certified Solution Developer WebSphere Message Broker V6.0
 
IBM Certified System Administrator WebSphere MQ V6.0 | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | jefflowrey | 
		  
		    
			  
				 Posted: Thu Jan 17, 2008 6:55 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Grand Poobah
 
 Joined: 16 Oct 2002 Posts: 19981
  
  | 
		  
		    
			  
				You really need the .cpy file, in order to ensure you get the field size and types correctly.
 
 
This appears to be basic Tagged/Delimited, where RecordType is your tag.  But we don't know if RecordType is properly unique. _________________ I am *not* the model of the modern major general. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | kimbert | 
		  
		    
			  
				 Posted: Thu Jan 17, 2008 7:23 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		    Jedi Council
 
 Joined: 29 Jul 2003 Posts: 5543 Location: Southampton 
  | 
		  
		    
			  
				| Can you post an example message - it is difficult to work out the exact on-the-wire format by reading the model alone. | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | satya2481 | 
		  
		    
			  
				 Posted: Fri Jan 18, 2008 2:16 am    Post subject:  | 
				     | 
			   
			 
		   | 
		 
		
		   Disciple
 
 Joined: 26 Apr 2007 Posts: 170 Location: Bengaluru 
  | 
		  
		    
			  
				Thank you for your reply.
 
   
	| Code: | 
   
  
	| But we don't know if RecordType is properly unique. | 
   
 
 
RecordType is unique.
 
   
	| Code: | 
   
  
	| Can you post an example message | 
   
 
 
I really donot have an example message for this message model, but below i am giving a sample message which is having almost similar message structure.
 
   
	| Code: | 
   
  
	101979797000000800020060508                                         CUSTOMER -4896                     City                               01000                                                                      2006042100TESTMOD3         3       000000000000000          
 
103989898000000800001002100121100     1234580000145200590000000001000N     000010000000005500                                   N001
 
1069797970000008000001000300000145200590000010
 
1049797970000008000001035Sundry Cost      0000000007000
 
1059797970000008000001Noise--                                                               
 
1029797970000008000001000035000000100000000000001003 | 
   
 
 
 
Well I resolved this issue.
 
I modelled my message like
 
 
   
	| Code: | 
   
  
	SendAnswer (Message) (Tagged delimited, length of tag 3, delimiter <CR><LF>
 
   Status (Min=0, Max= -1) -- Complex (Fixed length) Tag =101
 
      Field1 -- Element 
 
      Field2 -- Element 
 
   Claim (min=0, max=-1) -- Complex (Tagged delimited, tag length 3, Delimiter <CR><LF>,Tag 0 102)
 
      Field1 -- Element (Both these combined in a group)
 
      Field2 -- Element 
 
      Travel (min=0, max=1) -- Complex (Fixed length) tag = 104
 
         Field1 -- Element 
 
         Field2 -- Element 
 
      Job (min=1, max=-1) -- tagged delimited, delimiter <CR><LF> tag = 107
 
         Field1 -- Element -- (Both these combined in a group)
 
         Field2 -- Element 
 
         Sundry (fixed length, tag = 105)
 
            Field1 -- Element 
 
            Field2 -- Element 
 
         PartsLine (min=0, max=-1) -- Complex (Fixed length, tag = 106)
 
            Field1 -- Element 
 
            Field2 -- Element 
 
   Parts (min=0, max=-1) -- Fixed length, tag = 103
 
      Field1 -- Element 
 
      Field2 -- Element | 
   
 
 
 
Once again thanks for your immediate reply.
 
 
Satya _________________ IBM Certified Solution Developer WebSphere Message Broker V6.0
 
IBM Certified System Administrator WebSphere MQ V6.0 | 
			   
			 
		   | 
		 
		
		  | Back to top | 
		  
		  	
		   | 
		 
		
		    | 
		 
		
		  | 
		    
		   | 
		 
	   
	 | 
   
 
  
	     | 
	 | 
	Page 1 of 1 | 
   
 
 
 
  
  	
	  
		
		  
 
  | 
		  You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
  | 
  		 
	   
	 | 
   
 
  	 | 
	  |