SFTP Write to Tape

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
hollams
Posts: 3
Joined: Fri Jan 13, 2017 5:02 pm

SFTP Write to Tape

Post by hollams »

We are currently converting our Windows batch FTP jobs to use SFTP which transfers windows files to the mainframe. For one of our processes we need the file to be written to Virtual tape. I tried the unit keyword which is what I use for the regular ftp but it always writes it to regular DASD. Example is below. I've tried various esoteric values that we have on our system for our virtual tape, but none seem to work.

psftp> ls /-/+recfm=fb,lrecl=80,unit=3490
Listing directory /-/+RECFM=FB,LRECL=80,UNIT=3490
Volume Referred Ext Tracks Used Recfm Lrecl BlkSz Dsorg Dsname
psftp> put test.txt /-/hollams.seq.test1
hollams
Posts: 3
Joined: Fri Jan 13, 2017 5:02 pm

Re: SFTP Write to Tape

Post by hollams »

I think I found my issue. I needed to have the mount option set first before i put the file.
Post Reply