Looking for a way within a print file function (prtfil) to open/close the print file in order to generate separate spool file entries for each document being printed.
Is there option in CA 2E to do this or can this be accomplished using User Source exit point?
CA 2E
CA 2E does not have any out of box functionality for this type of request, but you can use the following to achieve the same.
In CA 2E, you can modify/insert generated lines with the help of the ”YSCNRPLSRC" command (For example USROPN in F-Spec).
Secondly, you can use function type “EXCUSRSRC” to insert a line of code (For example: OPEN/CLOSE opcodes(operations)) in the appropriate action diagram user points to achieve this task.