


The only time the external file is used is during the compile of the program.
As Tom said, external level checks will not occur during run time.
Since the program contains the old data structure, it will not contrain any of the changes made after the compile. If this isn't a problem the program will work.
Phil


I wouldn’t expect a level check unless it’s a file defined in the F-specs, but I wouldn’t be surprised if other errors showed up. Why not just test it?
Tom
Hi Tom/Philip, Thanks for the clarification. I’m under assumption that the data structure will be expanded, even at program run time.
So even if the external file changed and we didnt compile the program, program will be used the old data structure of the file…right…?
Exactly, during compiing the data structure of the external file is mapped.
That structure will be used within the program without change until the program is recompiled.
As Tom said, the level check will only occur with F-specs.
I think a good practice is to recompile programs that use files in F-specs or external data structures when the file structure is changed. In the shops I’ve worked in, we always recompile programs with external data structures when the file changes and we make any other changes that arfe required at the same time.
When we use external data structures it’s often directly or indirectly tied into the file and structural changes to the file should be recognized by the programs.
Phil
I’m under assumption that the data structure will be expanded, even at program run time.
No, it won’t.
So even if the external file changed and we didnt compile the program, program will be used the old data structure of the file…right…?
The DS will still have the old, unchanged file fields — right. I tested it to be sure, but I only tested on V5R4. I don’t see any reason it would be different on later releases.
Tom
Thanks again, guys for clarifying…….)