To use anonymous File Transfer Protocol (FTP), you need to write two exit programs: FTP Server Logon exit program and FTP Server Request Validation exit program.
The FTP Server Logon exit program enables the ANONYMOUS user ID and forces the ANONYMOUS user to the public library or directory. The FTP Server Request Validation exit program restricts the commands, files, and directories or libraries that the ANONYMOUS user can use.
The FTP server communicates with each exit program through a specific exit point. Parameters are passed between the server and the exit program. The format of the exchanged information is specified by an exit point format.
Program | Exit Point | Format |
---|---|---|
Server logon | QIBM_QTMF_SVR_LOGON | TCPL0100, TCPL0200, or TCPL0300. 1 |
Request validation | QIBM_QTMF_SERVER_REQ | VLRQ0100 |
|
Example programs are available to help you set up anonymous FTP on your server. You can use these samples as a starting point to build your own programs. By copying portions of the code from the samples, you can add them to programs that you write yourself. It is recommended that you run the sample programs on a system other than your production system.