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
SFTP Write to Tape
Re: SFTP Write to Tape
I think I found my issue. I needed to have the mount option set first before i put the file.