Because this is (apparently) specific to the i ftp client, you can create a kind of extension through the use of the “!” FTP subcommand.
Create a CL program that accepts a single *CHAR (50) parm. The only executable statement will be RETURN. Then create a FTPCOMMENT *CMD with a single *CHAR (50) PARM and set the CLP as the CPP.
In your FTP script:<pre>
! FTPCOMMENT ‘This is my comment line’</pre>
As long as the FTPCOMMENT *CMD is somewhere in the library list, it shouldn’t have any problem.