Hi,
I’m having trouble defining a FF Schema for a file that has the following structure:
Multiple occurences of the following in the same one file:
Header - [Identifier: 0, Max Occurs: 1]
Detail - [Identifier: 2, Max Occurs: Unlimited]
Trailer - [Identifier: 7, Max Occurs: 1]
So, in other words, the file contains a DocumentList of:
Beginning of File
1 Header/Multiple Details/1 Trailer;
Another Header/Multiple Details/Another Trailer;
Another Header/Multiple Details/Another Trailer;
Another Header/Multiple Details/Another Trailer;
Another Header/Multiple Details/Another Trailer;
End of File
Does anyone know how to define the schema to reflect this ?? I’ve been trying for a couple of days now with no luck.
Hi Sai,
That’s the easy part. I don’t think you read my original post correctly… Please take note of the "Beginning of File" and "End of File" positions in the example below…
Beginning of File ← This indicates the top of the flat file
[1 Header record/Multiple Detail records/1 Trailer record]
[1 Header record/Multiple Detail records/1 Trailer record]
[1 Header record/Multiple Detail records/1 Trailer record]
[1 Header record/Multiple Detail records/1 Trailer record]
[1 Header record/Multiple Detail records/1 Trailer record]
End of File ← This indicates that there are no more records in the file…
Hi,
I think there might be some confusion about the structure of the files that I am working with. There are three different record types in the file (0 - Header RecType, 2 - Detail RecType & 7- Trailer RecType)
The following is an actual file with pertinent data replaced
Hi,
I’m confused. I know I tried that previously and it didn’t work properly. I’ve tried it again and it now works… I must of have not had one of the flags set correctly before…