This function is used to sort the spool entry according to criteria defined in a Sort Definition.
D=Sort Spooled File
Seqnbr Function 2,0 D Sort Spooled File
Sort definition name . . . . . . __________ Outque for sorted print . . . . *DEFAULT__ Library . . . . . . . . . . . __________ Form type . . . . . . . . . . . __________
F3=Exit F11=Delete F12=Cancel
|
Sort Definition Name
The Sort definition name.
Output queue/library
Output from the Sort process will be a new SCS spool entry. *INPUT in this field Indicates that the new spool entry must be written to the same output queue where the input spool entry exists. *DEFAULT refers to the default output output queue of the AFC output queue header definition.
As the new spooled file afterwards will be input to a merge operation, *INPUT will often be appropriate, but note the warning below. Note that the keyword *DEFAULT and *INPUT apply to both Output queue and library.
Formtype
The formtype entered here should be used as condition for a 1. Merge with overlay following this AFC definition. The formtype could typically be SORTED.
WARNING: Make sure, that you are not creating a loop in Auto Forms Control when you insert a sort definition. If you e.g. create a new spooled files with a sort definition and these new spooled files are placed back on the same outq, then the new spooled files should NOT be able to trigger the sort definition again...