70 pts.
 External Datastructure
Will level check occured on program when you changed the file mentioned in external data structure?

Software/Hardware used:
ASKED: November 29, 2010  6:26 AM
UPDATED: November 30, 2010  8:10 AM
  Help
 Approved Answer - Chosen by Kvrs80 (Question Asker)

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

ANSWERED:  Nov 29, 2010  11:41 AM (GMT)  by Kvrs80

 
Other Answers:
Last Wiki Answer Submitted:  June 30, 2012  7:04 am  by    0 pts.
Latest Answer Wiki Contributors: 
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 107,715 pts.

 

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…?

 70 pts.

 

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

 44,070 pts.

 

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

 107,715 pts.

 

Thanks again, guys for clarifying…….)

 70 pts.