PDA

View Full Version : Z/OS - Downloaded zip file is corruped


lmxu
05-03-2010, 07:32 PM
Hello All,

So I'm doing SFTP and tried to download a file from IBM mainframe z/os to my PC's c:/drive.

SshParameters params = new SshParameters(hostname, 322, username,password);

Sftp ftp = new Sftp(params);
ftp.addSftpListener(this);
ftp.connect();
ftp.setDir(remoteDir);
ftp.setAuto(true);
ftp.download("C:/Work/"+remoteFile, remoteFile);
ftp.disconnect();



File is downloaded just fine, but when i tried to unzip it, it tells me Unsupported compression method ...

This works on all other unix boxes we tried. Just not from a z/os platform

Any ideas.

mjawwad
05-03-2010, 08:50 PM
Please check the line terminator used. You can specify this by using Sftp.setLineTerminator() method. If you still run into issues please provide a ticket to http://www.jscape.com/support/