Help needed to mount tapes

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
ecornish@iso.com
Posts: 1
Joined: Wed Jan 13, 2021 7:39 am

Help needed to mount tapes

Post by ecornish@iso.com »

Getting the following error trying to read a zOS tape dataset:

[19:31:26.171267] debug3: Type: SSH2_FXP_OPEN
[19:31:26.171396] debug3: request 4867: open flags 1
[19:31:26.171405] open "//I08219/PRINT133.TAPE" flags READ mode 0666
[19:31:26.171415] debug3: zos_process_open: zos_open_options: ztransfer_flags: 0x0 ibk: ''
ZosSettings: Transfer options: clientcp=ISO8859-1,gdgnt,mode=text,servercp=IBM-1047,trim
ZosDataset: Opening dataset I08219.PRINT133.TAPE for read with options: shr
IKJ56221I DATA SET I08219.PRINT133.TAPE NOT ALLOCATED, VOLUME NOT AVAILABLE+
IKJ56221I VOLUME NECESSARY TO SATISFY YOUR REQUEST NOT ON SYSTEM, AND CANNOT BE MOUNTED
DatasetHandler[E]: BPXWDYN allocation failed S99ERROR=0x0218 S99INFO=0x0000
DatasetHandler[E]: BPXWDYN command was: "alloc fi(SYS00007) reuse msg(2) da('I08219.PRINT133.TAPE') shr"
DatasetHandler[E]: Dataset I08219.PRINT133.TAPE open error: EDC5000I No error occurred. (errno2=0x00000000)
IKJ56247I FILE SYS00007 NOT UNALLOCATED, IS NOT ALLOCATED
[19:31:26.729399] debug3: request 4867: sent s[19:36:07.404860] debug1: read eof

I do have the mount parm coded:
cozsftp> ls /+
/+/clientcp=IBM-1047 /+/error.log /+/loglevel=T
/+/mode=text /+/mount /+/servercp=IBM-1047
/+/trim

Any help would be appreciated.

Ed Cornish
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Help needed to mount tapes

Post by dovetail »

If you were using a tape on the client side, then the best thing would be to have a DD for it and just use the file from Co:Z SFTP as "//DD:MYTAPE".

Since it is the server where you want to mount the tape, it will need to be dynamically allocated. We use BPXWDYN for this, and for this to work you need two things:

1) The "mount" option in Co:Z SFTP, which will be passed as a BPXWDYN option.
2) "MOUNT" permissions in your security product for the userid.

You say that you have configured the mount option from the client, but it doesn't appear that this is true looking at the server log:

ZosDataset: Opening dataset I08219.PRINT133.TAPE for read with options: shr
- the options should have included "mount" along with "shr"

DatasetHandler[E]: BPXWDYN command was: "alloc fi(SYS00007) reuse msg(2) da('I08219.PRINT133.TAPE') shr"
- the BPXWDYN command string should have had the mount option also.

The Co:Z server session log before what you provided should show the "mount" option being set for this session.

What version of Co:Z SFTP server are you running? (this should be at the beginning of the log file).
Post Reply