ftp automation

ScriptFTP

The professional tool to automate FTP, SFTP, FTPS and schedule FTP batch jobs

The forum is now read only. Please, go to the the main ScriptFTP website if you need help.
Missing any feature or command? Post your ideas here. Suggestions are welcome.
Issue with GETLIST on IBM MVS.

When doing a GETLIST against a particular GDG dataset the GETLIST is only returning one filename instead of 4. When I issue a dir or ls from the windows7 ftp.exe program I get all four.

FYI - This is a nice ftp scripting tool.
VERBOSE(ON)
Verbose mode enabled

SETPROTOCOL(FTP)
Setting protocol to common FTP.
Setting TCP port to 21.

OPENHOST("xxxxxx","xxxxx","xxxxx")
Connecting to host
Resolving host name "host"
Connecting to host Port: 21
Connected to host.
220-ATCPFTP1 IBM FTP CS V1R11 at host, 20:18:55 on 2011-09-07.
220 Connection will close if idle for more than 30 minutes.
USER #user
331 Send password please.
PASS pwd
230 xxxxxx is logged on. Working directory is "xxxx".
SYST
215 MVS is the operating system of this server. FTP Server is running on z/OS.
FEAT
211 no Extensions supported
TYPE I
200 Representation type is Image
REST 0
504 Restart requires Block or Compressed transfer mode.
PWD
257 "'#user.'" is working directory.

Connected.
FTP Connection Successful - Status: OK

SETTYPE(ASCII)
Setting file transfer type to ASCII.

CHDIR("'NODE.ONE.TWO.THREE.GDG'")
Changing current remote directory to 'NODE.ONE.TWO.THREE.GDG'
CWD 'NODE.ONE.TWO.THREE.GDG'
250 "NODE.ONE.TWO.THREE.GDG." is the working directory name prefix.
PWD
257 "'NODE.ONE.TWO.THREE.GDG.'" is working directory.


GETLIST(REMOTE_FILES,"*")
Getting file listing of current remote directory
PASV
227 Entering Passive Mode (host,42,71)
Opening data connection to host Port: 10823
LIST
125 List started OK
329 bytes transferred. (10.3 KB/s) (31 ms)
250 List completed successfully.

Found 1 file.
G0362V00


CLOSEHOST
QUIT
221 Quit command received. Goodbye.
Client closed the connection.

Disconnected.
Unfortunately, the MVS systems send a file listing that ScriptFTP is not able to understand. The ftp.exe command line program is able to show the file listing because it simply shows the server listing "as is".
I would like to point out that GETLIST works on some datasets just not always.

FYI - I noticed the same number of bytes are returned to the GETLIST function as is returned to the dir command from the ftp.exe program.

Would it be possible in a future release to add a new function to show the server listing “as is”?
Yes, it is possible to include this feature in future releases. Would you mind if I ask you in the future for some MVS file listings for testing?

I will move this topic to the feature requests forum.