When attempting to use the SFTP print driver, the file does not reach the destination server and ESF766 infinitely loops as it continues to try to resend.
OM Spool 14, RACF security, A NODE or DEFNODE utilizing TCPDRIV=SFTP
The user Spool is running under does not have appropriate RACF access to either the SECLABEL,
SERVAUTH profile, or APPL specified in the parmlist.
The OM Spool task userid and any user who sends files to OM Spool must have access to the programs that are under RACF Program Control. READ access to BPX.SERVER and BPX.DAEMON is also required.
If the APPL class for the security product is active, any user who sends files to OM Spool must have access to the OMVSAPPL applid resource or a customized z/OS Unix APPLID value in the CLASS(APPL).
OM Spool establishes the security environment under the user ID who created the OM Spool file being transferred before executing the SFTP command. RACF requires that the OM Spool task user ID is defined as UID=0 to make that change to the security environment.
Run the command: RLIST APPL OMVSAPPL AUTH
Ensure that the user Spool is running under, and the user attempting to send the file is in the access list of this profile.