The FTCHKCMD user exit (for the FTP server)

The FTCHKCMD user exit is called whenever the server receives an FTP command. The following information is passed to the user exit:

The user exit enables an installation to modify the arguments of an FTP command or to deny a user from issuing the command. For example, if the server receives a LIST * command, the exit can either deny the command or modify it to LIST 'USER1.*'. If the user exit denies the request by this user to issue this command, one or both of the following replies will be sent to the user. The first reply is optional and is sent only if the user exit returns a string in the 500 reply extension buffer.

500-UX-buffercontents
500 User Exit denies Userid userid from using Command command