Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

How to parse the footer without keys for sender file adapter

$
0
0

Hi, all

 

I am having an interface to do that parses a flat file and here is the example format:

Joe;Smith;8E1;2005-01-01

John;Doe;9N5;2004-12-30

COUNT:2

 

The trailer is the count. If the count is not the same as the number of lines of data, then an error should be returned.

I am not sure how to parse the data with the sender file adapter. Originally I was thinking to use the keyFieldValue to parse in the trailer since COUNT can be the key and ":" is the fieldSeparator. However, the data portion(Joe;Smith:....) does not have a key. So it didn't work out.

 

Please advise and your help is much appreciated.

Thanks

Jonathan.


Viewing all articles
Browse latest Browse all 7030

Trending Articles