You could declare the file as internally defined with user open, then you can do an OVRDBF to the correct file at run time and open the file.
Why? You’re taking on quite a chore, that has good comercial solutions.
You could declare your file as Internally described .. but then you have no field definitions.
You can capture the field definitions in a number of ways (DSPFFD or in SQL).
You’ve got a lot of work ahead of you.
You could also retrieve the field descriptions and details on the file description from the cross reference tables.
You’re right – as always, Martin. And it’s still quite a chore.
Are there some freebee or cheepe that does this? — Oh there’s always DFU.