Mainframe to Mainframe SFTP issue

Discussion of the free COZBATCH utility for z/OS
Post Reply
igortr
Posts: 8
Joined: Tue Aug 25, 2015 2:50 pm

Mainframe to Mainframe SFTP issue

Post by igortr » Tue Aug 25, 2015 3:00 pm

we use COZBATCH for mainframe to mainframe sftp. Both mainframes have COZBATCH installed. Logon option is password. the batch job on MVS runs ok, however the file is not cataloged on the receiving site. there is a message in the log, which I don't know how to interpret:
cozsftp> lzopts mode=text
mode=text
cozsftp> zopts recfm=fb,lrecl=112,blksize=11200,space=trk.5.5,unit=sysda
Command unavailable: remote server is not Co:Z sftp

It looks like OMVS setting has an error. What could be a possible reason for this message. Any help is greatly appreciated.

SteveGoetze
Posts: 376
Joined: Fri Jul 30, 2004 5:29 pm

Re: Mainframe to Mainframe SFTP issue

Post by SteveGoetze » Wed Aug 26, 2015 7:50 am

The zopts command sets Co:Z options on the remote system. This requires that the sshd sftp subsystem running on the remote is Co:Z sftp-server, and that your userid is able to use it. You should check the remote system to ensure that the subsystem was set up properly (Simply installing the Co:Z package on z/OS will not automatically do this, you need to configure sshd).

See the instructions here for details: http://dovetail.com/docs/sftp/config.html#config_server

igortr
Posts: 8
Joined: Tue Aug 25, 2015 2:50 pm

Re: Mainframe to Mainframe SFTP issue

Post by igortr » Wed Aug 26, 2015 10:18 am

Thank you so much. Updating configuration files fixed the problem

Post Reply