cancel
Showing results for 
Search instead for 
Did you mean: 

content conversion sender keyfield + unknow length field

Former Member
0 Kudos

hi,

I have a file with lines. the first six chars of each line tells me which type of line it is.

I need to split the file to files which contains only one type of lines each.

I bulit data type with 2 fields : ID - length = 6 chars, Data - length unknown.

I can use ID as keyfield but i don't have length or separator.

How do i achive the split with the sender channel content conversion?

Is there another way I can define my data type to solve this?

Thanks

Tomer

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

You can use the FCC parameter

fieldFixedLengths and fieldNames.

Define fieldName as ID and length will be 6. The remaining can be taken into different field.

This you can map to two different structures in message mapping. If you are confirtable with Java or XSLT that can work too.

Thanks

Gaurav

prateek
Active Contributor
0 Kudos

When u use FixedFieldLength option, u may use two fields, ID and Data. After 6 characters, complete data could be part of a sinlge filed. This field could then be used in java mapping to convert it into your required format.

Regards,

Prateek