You can use this capability in OS/400® V4R4 and later of the operating system.
To produce an FTP client trace or display, use the DEBUG FTP client subcommand. The DEBUG subcommand toggles the debugging mode. If the client specifies an optional debug-value, it will use it to set the debugging level. When debugging is on, the client displays with the string '>>>'. You must set the debug-value to 100 to produce an FTP client trace.
DEBug [debug value]
To initiate a trace immediately when the FTP client starts, you need to create the QTMFTPD100 data area in the QTEMP library by using this command:
CRTDTAARA DTAARA(QTEMP/QTMFTPD100) TYPE(*LGL) AUT(*USE)
If the QTMFTPD100 data area exists, then it will set the debug value to 100 and start an FTP client trace. The purpose of this capability is to enable the FTP client debug traces in those situations when an FTP client trace cannot start with the DEBUG 100 subcommand.