Tape dataset error with cozsftp V6.0.0

A discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
mmulconry
Posts: 8
Joined: Mon Oct 01, 2018 2:53 pm

Tape dataset error with cozsftp V6.0.0

Post by mmulconry » Fri Apr 24, 2020 3:28 pm

I have a sequential dataset on tape, recfm=vb. Sending the file to another zOS host using V5.1.1 works, but I get an error with V6.0.0:

Using Co:Z SFTP version: 5.1.1 (6.4p1) 2018-06-01:

cozsftp> lzopts mode=text,mount
mode=text mount
cozsftp> put //PVTEST.MDX.PRF.OUT /tmp/mlm.txt
Uploading //PVTEST.MDX.PRF.OUT to /tmp/mlm.txt
ZosSettingsÝI¨: Transfer options: clientcp=IBM-1047,mode=text,mount,servercp=IBM-1047,trim
ZosDatasetÝI¨: Opening dataset PVTEST.MDX.PRF.OUT for read with options: mount shr
ZosDatasetÝI¨: Closing dataset //PVTEST.MDX.PRF.OUT - 2 records read, 58 bytes sent


Using Co:Z SFTP version: 6.0.0 (7.6p1) 2020-02-14:

cozsftp> lzopts mode=text,mount
mode=text mount
cozsftp> put //PVTEST.MDX.PRF.OUT /tmp/test1_20200424154945.txt
ZosDataset[E]: may not open data with unsupported DSORG: "PVTEST.MDX.PRF.OUT"
Uploading //PVTEST.MDX.PRF.OUT to /tmp/test1_20200424154945.txt
[15:49:46.557045] Couldn't open local file "//PVTEST.MDX.PRF.OUT" for reading: EDC5134I Function not implemented. (errno2=0x00000000)

Any suggestions would be welcome. Thanks!

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

Re: Tape dataset error with cozsftp V6.0.0

Post by dovetail » Tue Apr 28, 2020 2:52 pm

Thanks for reporting this. Some enhancements in V6.0.0 did break this. We will be fixing it soon.

Note: a workaround (and better way) to use tape data sets on the client side is to use a DD.

put //DD:MYDD /tmp/mlm.txt


then in the DD statement in the JCL you can also specify DCB information, since this isn't available for cataloged tape datasets.

mmulconry
Posts: 8
Joined: Mon Oct 01, 2018 2:53 pm

Re: Tape dataset error with cozsftp V6.0.0

Post by mmulconry » Tue Apr 28, 2020 4:00 pm

Thanks, and I appreciate the recommendation to use //DD:MYDD.

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

Re: Tape dataset error with cozsftp V6.0.0

Post by dovetail » Fri May 15, 2020 8:38 am

We corrected this problem in release V6.1.0.
The new release also adds additional support for allocating existing tape data sets.

mmulconry
Posts: 8
Joined: Mon Oct 01, 2018 2:53 pm

Re: Tape dataset error with cozsftp V6.0.0

Post by mmulconry » Fri May 15, 2020 8:41 am

Thanks! We'll give it a shot when we get the chance. Much appreciated!

Post Reply