NL033: Use of DEFINE/READ/WRITE/CLOSE WORK FILE statements outside of Natural Program is discouraged
NL033: Use of DEFINE/READ/WRITE/CLOSE WORK FILE statements outside of Natural Program is discouraged
type: code-smell
priority: major
#clumsy
#confusing
#bad-practice
#pitfall
Description
Similar to transaction logic, work file handling should only be placed in Natural Programs, because this is the top layer of Natural objects. If you put them in other Natural objects, these can be called from other objects, and then you have little control over work file handling, anymore. However, there can be exceptions to this - so not as strongly discouraged as transaction logic.