Hi,
I'm looking for idea how to solve issue of reading file and data elements not knowing how this file looks prior to the run.
I will always get 2 files, data file and another file with the layout of the data.
The data file is fixed length file. For example if Last Name is 30 bytes it will always be 30 bytes. (last name + trailing spaces)
But I have no idea where to start with this?
If I know my data prior to compile I think I could create Custom Type object or something like that but what do I do in this case?
Thank you.
This is simple example of data and layout.
I'm looking for idea how to solve issue of reading file and data elements not knowing how this file looks prior to the run.
I will always get 2 files, data file and another file with the layout of the data.
The data file is fixed length file. For example if Last Name is 30 bytes it will always be 30 bytes. (last name + trailing spaces)
But I have no idea where to start with this?
If I know my data prior to compile I think I could create Custom Type object or something like that but what do I do in this case?
Thank you.
This is simple example of data and layout.
DATA | |||||
First Name | Last Name | Member Date | Member Number | Member Status | Member Fee |
John | Smith | 5/10/2019 | 120501 | A | 3.00 |
Ann | Miller | 8/2/2020 | 120502 | A | 3.00 |
Rich | Johnson | 4/27/2020 | 120507 | I | 0.00 |
Mark | Wilson | 9/14/2021 | 120504 | A | 3.00 |
Joe | Garcia | 5/5/2022 | 120505 | A | 4.00 |
Debie | Jones | 7/19/2022 | 120509 | A | 4.00 |
LAYOUT | |||||
Field Name | Field Type | Field Length | |||
1 | First Name | Character | 35 | ||
2 | Last Name | Character | 35 | ||
3 | Member Date | Date | |||
4 | Member Number | Double | 9 | ||
5 | Member Status | Character | 1 | ||
6 | Member Fee | Decimal | 3.2 |