Hello Friends
I need advise in defining a complicated flat file schema. The file is data positioned file. Below is how it looks in hierarchy. There are 2 types of records one with 0100 & 0200. There are additional records under each type.
0010 [Transmission header]…Data
0100 {Type 1]…Data
0105
0110
0199
0200 [Type 2]…Data
0205
0210
0230
0235
0299
9999 [Transmission Detail]
My problem is the sequence or 0100 & 0200 type is random. In some files 0200 set comes first & 0100 & again 0200 …etc.
Any idea how to handle it? I tried with floating record, but it allows only one type. The detail record like 0105 etc, cannot be defined then.I have attached a dummy sample file.
The only option i see is to define only one schema per type and processing the file twice per type.I was looking for a better option.
Thanks
Anish.
Samplefile.txt (5.03 KB)