Sample client user exits

You can find user exit samples in hlq.SEZAINST(EZAFCEXT). EZAFCEXT is a JCL file. It creates user exit routine load modules. When the JCL is submitted, it creates four load modules. EZAFCCMD and EZAFCREP are user exit routines. EZAFCCOM and ASMTSYSL are assistant load modules that are called by the EZAFCCMD and EZAFCREP user exit routines.
Table 1. User exit samples
Load module Language Description
EZAFCCMD Assembler EZAFCCMD works in conjunction with the EZAFCREP. These two exits maintain a shared storage area where the FTP session state is maintained. The EZAFCCMD maintains information in the shared session data area based on which commands are being sent to the server. When a file transfer has completed successfully, a message is written to syslogD.
EZAFCREP Assembler EZAFCREP works in conjunction with the EZAFCCMD. These two exits maintain a shared storage area where the FTP session state is maintained. EZAFCREP analyzes the replies to the commands that were sent to the server and parses information from a select set of replies. When a file transfer has completed successfully, a message is written to syslogD.
EZAFCCOM Assembler EZAFCCOM is called from both of these exits during initialization. EZAFCCOM contains common code for the EZAFCCMD (EZAFCCMD) and EZAFCREP (EZAFCREP) FTP client exit routines.
ASMTSYSL Assembler ASMTSYSL provides an interface for writing messages to z/OS® syslogD from non-C programs.