FTPOSTPR is called upon completion of the FTP commands
RETR, STOR, STOU, APPE, DELE, and RNTO. The user exit is passed as
follows:
- The user ID
- The client IP address
- The client port number
- The current directory type
- The length of the parameter string
- The current working directory
- The current file type
- The FTP reply code
- A buffer containing the FTP reply line sent to the client
- The FTP command code
- The current CONDDISP setting
- The file transfer completion code
- Name of the data set or z/OS® UNIX file retrieved or stored
- Two words containing the bytes transferred during execution of
this command
- The socket address structure of the client's control connection
- The socket address structure of the server's control connection
- A buffer containing the session instance identifier
- A 256-byte scratchpad buffer
- The one-byte description of the confidence level in successful
completion of a transfer
- A buffer containing the FTP reply
The user exit can take action based on any of the information
passed to it. The close reason code indicates whether the command
completed successfully. The scratchpad buffer can be used to communicate
information to other exits or the next instance of this exit.