Try this :
- declare your file as no-dds (program described) with only one field large enough for the largest record
- before running programm, OVRDBF compil-time file to real file
- read the record one by one
- when you know the format, move the record field to some DS
It’s an old technique. Be carefull, V5R4 seem to be the latest version witch supports program-described files.
I’m not sure why “Be careful” and “V5R4 seem to be the latest version witch supports program-described files” are put together. Why be careful? It’s no different in V5R4 than in previous releases. It’s the same in V6R1. It looks like it’ll be the same in V7R1 and the foreseeable future.