LPAR to LPAR FTP / RFILE Open Failure

Discussion about community tools that we make available for z/OS without support
Post Reply
wipro@ifox
Posts: 3
Joined: Tue Aug 08, 2017 8:23 am

LPAR to LPAR FTP / RFILE Open Failure

Post by wipro@ifox » Tue Aug 08, 2017 9:39 am

Hello, I new to the forum, can anyone help me with an issue using COZBATCH.
This is a mainframe to mainframe FTP or LPAR to LPAR FTP
Unable to open the RFILE Failure
File is pre-allocated on the remote LPAR

Receiving the following error.

ZosSettingsÝI¨: Transfer options: gdgnt,mode=binary
ZosDatasetÝI¨: Opening dataset MMITMMO.DCMOVE.DCOLLECT.DASD.OMAHA2 for read with
CoZBatchÝT¨: 152 bytes written to DD:STDERR
CoZBatchÝT¨: fd_cerr selected for reading
Ý66.193¨ remote open("//MMITMMO.DCMOVE.DCOLLECT.DASD.DWB"): Failure
ZosDatasetÝI¨: Closing dataset //MMITMMO.DCMOVE.DCOLLECT.DASD.OMAHA2 - 0 records

//SFTPIN DD *
host=10.112.30.15
user=V612396
pwdsn='V612396.TEST.JCL(PW1)'
lfile="//MMITMMO.DCMOVE.DCOLLECT.DASD.OMAHA2"
rfile="//MMITMMO.DCMOVE.DCOLLECT.DASD.DWB"
sftp_opts="$sftp_opts -oPubkeyAuthentication=no"

. $script_dir/sftp_put.sh

Thank you,
Norm

dovetail
Site Admin
Posts: 1770
Joined: Thu Jul 29, 2004 12:12 pm

Re: LPAR to LPAR FTP / RFILE Open Failure

Post by dovetail » Wed Aug 09, 2017 7:54 am

Please note: This is really a question about Co:Z SFTP, so in the future use the Co:Z SFTP forum for this.

This error:

remote open("//MMITMMO.DCMOVE.DCOLLECT.DASD.DWB"): Failure

means that the remote server returned a failure to the open request for the file (data set).
It probably means that the remote server is not running Co:Z SFTP (even if it is installed, it might still be running IBM's sftp server on z/OS).

wipro@ifox
Posts: 3
Joined: Tue Aug 08, 2017 8:23 am

Re: LPAR to LPAR FTP / RFILE Open Failure

Post by wipro@ifox » Wed Aug 09, 2017 8:07 am

Thank you for your response.
Yes, I suspected that was the issue. but the following message was generated.
Which lead me to believe it was not using IBM SFTP.

Connect using SSH_ASKPASS, password will be read from V612396.TEST.JCL(PW1)...
Executing: /ifox/coz/bin/cozsftp -oBatchMode=no -oConnectTimeout=60 -oServerAli
1 -oStrictHostKeyChecking=no -oPubkeyAuthentication=no -b- 'V612396@10.112.30.15

Thanks,
Norm

dovetail
Site Admin
Posts: 1770
Joined: Thu Jul 29, 2004 12:12 pm

Re: LPAR to LPAR FTP / RFILE Open Failure

Post by dovetail » Wed Aug 09, 2017 8:14 am

I mean that the *server* that you are talking with is running IBM sftp, so that it does not support //DSN syntax for files.

wipro@ifox
Posts: 3
Joined: Tue Aug 08, 2017 8:23 am

Re: LPAR to LPAR FTP / RFILE Open Failure

Post by wipro@ifox » Sat Aug 12, 2017 11:02 am

Issue resolved. I was invoking the IBM FTP.
I commented out IBM FTP an uncommented COz FTP.
Recycled my SSHD task.
Job was able to open z/OS dataset on the remote system

Thank you for you assistance.

Norm

Post Reply