Author |
Message
|
Segs |
Posted: Fri Mar 22, 2002 7:11 am Post subject: |
|
|
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 |
|
 |
Balan |
Posted: Mon Mar 25, 2002 2:41 am Post subject: |
|
|
Newbie
Joined: 20 Mar 2002 Posts: 5 Location: Hexaware Technologies ltd. india
|
MRM even supports variable length fields in messages. |
|
Back to top |
|
 |
Tibor |
Posted: Mon Mar 25, 2002 7:07 am Post subject: |
|
|
 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 |
|
 |
jwende |
Posted: Tue Mar 26, 2002 2:05 am Post subject: |
|
|
 Novice
Joined: 02 Jul 2001 Posts: 23
|
... or you define it as a tagged delimited format .... |
|
Back to top |
|
 |
Cliff |
Posted: Tue Mar 26, 2002 7:46 am Post subject: |
|
|
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 |
|
 |
Cliff |
Posted: Thu Mar 28, 2002 1:21 am Post subject: |
|
|
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 |
|
 |
|