in reply to File read and re-ordering
Is the start of record tag the literal caret followed by uppercase L or are we seeing a representation of a <control-L>?
Because of line-wrap it is difficult to tell what lines your header data is on. It looks like name, address and country/ZIP are on lines 3, 4 and 5 but are you certain that the address will always fit this pattern? What characters are you likely to find and have to allow for in the data? It looks like you have a/c no. on lines 6 and 8; are the lines identical and what is the format of the number? Did you mean end-period-date rather than end-period-value? What is the date format?
Most importantly, is that all of the data you wish to extract from the header? What widths are you going to lay down for each field? By specifying fixed length records you imply that there will be no field separators in your header file; is this what you want or do you want separators to aid legibility?
As for the proposed output files, it looks like you intend to have a single header file containing a line of fixed-width data for each customer plus a file of variable length data for each customer. How do you intend to associate the header info with the relevant data file? I assume that a/c no. would be unique so that could form part of the data file name.
Answering these questions may help you towards a solution and help us to help you.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File read and re-ordering
by KarmicGrief (Initiate) on Oct 23, 2006 at 14:08 UTC | |
by johngg (Canon) on Oct 23, 2006 at 15:05 UTC | |
by KarmicGrief (Initiate) on Oct 23, 2006 at 16:13 UTC | |
by johngg (Canon) on Oct 23, 2006 at 18:55 UTC | |
by KarmicGrief (Initiate) on Oct 23, 2006 at 19:23 UTC | |
|