The question I have concerns the number of SORTWK* statements dynamically created and used through the use of the WORK parameter on the SORT statement in Easytrieve. My Easytrieve site default is set to WORK(3). I have the defaults above within DFSORT. Confusion sets in when I run an Easytrieve program sorting a small file using the WORK parm:
No WORK parm or WORK = 0 gives 4 SORTWK* allocations and DYNALLOC = 3.
WORK = 4 gives 6 SORTWK* allocations and DYNALLOC = 4.
WORK = 10 gives 15 SORTWK* allocations and DYNALLOC = 10.
Can someone please explain the second and third results ? I see the first.
The answer from Frank is that since Easytrieve passes input records through an E15 exit, DFSORT does not know the number of records. DFSORT will allocate what is specified ( current specification is 4 ) and proactively add half of what is requested, giving total of 6.