Tape dataset support

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
gngrossi
Posts: 38
Joined: Sat Mar 06, 2010 6:10 pm

Tape dataset support

Post by gngrossi »

We are migrating from a legacy file transfer product to Co:Z SFTP. We discovered jobs reading tape datasets and sending them to a Unix server.

I need to ask...are there any plans to support tape?

Thanks.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

Tape datasets are already supported, so long as they are cataloged.

If z/OS is the client, you can allocate the tape dataset with a DD in the Co:Z SFTP job step or use dynamic allocation by referencing the dataset by name.

If z/OS is the server, you can use dynamic allocation.

When using dynamic allocation, you need to enable the (BPXWDYN) "mount" setting:

ls /+mount (from a remote client to a z/OS server)
- or -
lzopts mount (from the Co:Z sftp client)

also: the job/user must have the authority to mount via dynamic allocation.
gngrossi
Posts: 38
Joined: Sat Mar 06, 2010 6:10 pm

Post by gngrossi »

We are using the SFTP client and trying to use dynamic allocation to read a cataloged tape dsn gdg.

Is this how we code it?

put //A.B.C(+0) UNIT=TAPE,LABEL=(1,SL),DISP=OLD

Thanks.
dovetail
Site Admin
Posts: 2025
Joined: Thu Jul 29, 2004 12:12 pm

Post by dovetail »

For reading a dataset (tape or otherwise), none of the BPXWDYN dynamic allocation settings are used; we just use the catalog.

For reading a tape dataset, you can use:
lzopts mount
put //A.B.C(+0) remotefilename

The dataset will have to be cataloged in order to resolve unit, etc.

However, since you are using the client, you could put a DD card (with whatever you like) in the jobstep, and then do:

put //DD:MYTAPE remotefilename
Post Reply