Hello-
I have a flat file which has a tag identifier (1,2,4,6,7,8,9). 1 and 2
make
the header and 8 and 9 mark the end. Tags4,6,7 can occer multiple times
and
in any sequence. For instance following two do***ents are valid as per
this.
1remaingdata
2remaingdata
4remaingdata
4remaingdata
4remaingdata
6remaingdata
4remaingdata
7remaingdata
8remaingdata
9remaingdata
or
1remaingdata
2remaingdata
4remaingdata
6remaingdata
4remaingdata
6remaingdata
7remaingdata
4remaingdata
6remaingdata
6remaingdata
8remaingdata
9remaingdata
Sorry for a long post, but I have been struggling with this for some time.
If there is a way of doing this in the flat file schema, it would be
great. I
beleive the only other option I'd have is to seperate each row and then
parse
it in the map or something like that.
Any help is appreciated!
Thank you,
Milan


|