ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » flat file parsing

Post new topic  Reply to topic
 flat file parsing « View previous topic :: View next topic » 
Author Message
Segs
PostPosted: Fri Mar 22, 2002 7:11 am    Post subject: Reply with quote

Voyager

Joined: 04 Oct 2001
Posts: 78
Location: Zurich Financial Services

Not too sure the exact problem here, but the MRM is used for fixed length fields only, you can accomodate varying numbers of rows however by using the OCCURS, or OCCURS DEPENDING structures in cobol.

Any queries please shout.

Cheers

Segs...
Back to top
View user's profile Send private message Send e-mail
Balan
PostPosted: Mon Mar 25, 2002 2:41 am    Post subject: Reply with quote

Newbie

Joined: 20 Mar 2002
Posts: 5
Location: Hexaware Technologies ltd. india

MRM even supports variable length fields in messages.
Back to top
View user's profile Send private message Send e-mail
Tibor
PostPosted: Mon Mar 25, 2002 7:07 am    Post subject: Reply with quote

Grand Master

Joined: 20 May 2001
Posts: 1033
Location: Hungary

Quote:

On 2002-03-25 02:41, Balan wrote:
MRM even supports variable length fields in messages.


...only when you define as (a) null terminated (b) length by a value!!!
Back to top
View user's profile Send private message
jwende
PostPosted: Tue Mar 26, 2002 2:05 am    Post subject: Reply with quote

Novice

Joined: 02 Jul 2001
Posts: 23

... or you define it as a tagged delimited format ....
Back to top
View user's profile Send private message Send e-mail
Cliff
PostPosted: Tue Mar 26, 2002 7:46 am    Post subject: Reply with quote

Centurion

Joined: 27 Jun 2001
Posts: 145
Location: Wiltshire

The MRM also supports length encoding 1 and length encoded 2 fields, the latter being standard IBM varying-length character strings. Not all code is written in 'C'!

Cliff
Back to top
View user's profile Send private message Send e-mail
Cliff
PostPosted: Thu Mar 28, 2002 1:21 am    Post subject: Reply with quote

Centurion

Joined: 27 Jun 2001
Posts: 145
Location: Wiltshire

length encoded 1: 1st byte of storage holds the length of the variable character string excluding the length byte.
length encoded 2: 1st 2 bytes hold the length of the string excluding the length bytes.
null terminated: last byte of the string is binary zeroes (X'00').

Also, you can use an OCCURS DEPENDING type of approach in the MRM, for example by putting your integer count field at the beginning of the message, building your message in a compute node, then RCDing it to a BLOB and removing the first few bytes in another compute node before outputting the message.

HTH - Cliff
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » flat file parsing
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.