You can use the DEBUG subcommand to track down problems on the FTP client.
To produce an FTP client trace or display the subcommands sent to the FTP server, use the DEBUG FTP client subcommand. The DEBUG subcommand toggles the debugging mode. If an optional debug-value is specified, it is used to set the debugging level. When debugging is on, each subcommand sent to the server is displayed and preceded by the string '>>>'. The debug-value must be set to 100 to produce an FTP client trace.
DEBug [debug value] |
If no value is specified, the debug-value is toggled from zero to one or from a positive integer to zero.
A new capability has been added to the FTP client for debugging for V4R4. This function is similar to the DEBUG 100 described above. When the client is started, it first checks for the existence of a data area named QTMFTPD100.
You need to create the dataarea QTMFTPD100 in the QTEMP library using this command:
CRTDTAARA DTAARA(QTEMP/QTMFTPD100) TYPE(*LGL)AUT(*USE)
If the QTMFTPD100 dataarea exists, then it will set the debug value to 100 and start an FTP client trace. The purpose of this capability is to enable FTP client debug traces to be done in those situations when an FTP client trace cannot be started by issuing the DEBUG 100 subcommand.