Problem in FTP_list
Posted: Thu Aug 03, 2023 3:18 pm
I've encountered problems in the FTP_list function in the *SRVPGM.
Contacting an FTP server with FileZilla on UNIX it gave no problems asking for the file list with "*.TXT"
I'm now testing a new Azure based server where the Filezilla server version is different and no longer accepts the "NLST *.TXT" command. I then corrected the program by passing the parameter to blank:
This should make me the list of all the files, then the code will read only the "TXT".
With this solution the program goes into TIMW state for about a minute then returns "$RC = -0000000001".
Thanks and sorry for my bad english
Contacting an FTP server with FileZilla on UNIX it gave no problems asking for the file list with "*.TXT"
Code: Select all
eval $Rc = ftp_list($Fd:%trim($FilesTXT):100: %addr($FilesName): $FilesNumber
Code: Select all
eval $Rc = ftp_list($Fd:' ':100: %addr($FilesName): $FilesNumber
With this solution the program goes into TIMW state for about a minute then returns "$RC = -0000000001".
Thanks and sorry for my bad english