I agree with Walt, you are using sftp, which is a different beast that ftp and 
as far as I know, yes I have not worked with sftp, just had to do a cursory 
look at it recently, but have not gone down the road, sftp does NOT support MVS 
data sets directly, it only works with zFS (USS), so you have to write to zFS 
first and then you can do a "!cp /<unix file> //'CH2ICST.X.Y.R1'" (without the 
double quotes) to get it to MVS.

Al Nims
University of Florida

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf 
Of Walt Farrell
Sent: Monday, April 24, 2017 10:45 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: FTP Failing with space issues

On Mon, 24 Apr 2017 08:17:55 -0500, Ron Thomas <ron5...@gmail.com> wrote:

>i executed the below script from Linux VM  and the below is what it says. 
>Looks like site command is not supported . So any idea on how this could be 
>resolved or is there any work around ?
>
>Script
>-----------
>sftp to1c...@cray.cps.se.com
><< EOF
>site blocksize=0 lrecl=3000 recfm=fb prim=25 sec=25 cyl put 
>/sap/co2ekh/backup/global_chgback_escoa_2017-01-22:22:00:10.txt 
>//'CH2ICST.X.Y.R1'
>quit
>EOF
>
>Log Message
>----------------
>sftp> site blocksize=0 lrecl=3000 recfm=fb prim=25 sec=25 cyl
>Invalid command.
>sftp> put /sas/co2ekh/backup/global_chgback_escoa_2017-01-22:22:00:10.txt 
>//'CH2ICST.X.Y.R1'
>Uploading /sas/comtekh/backup/global_chgback_escoa_2017-01-22:22:00:10.txt to 
>//CH2ICST.X.Y.R1
>/sap/co2ekh/backup/global_chgback_escoa_2017-01-22:22:00:10.txt                
>                                                       68% 2208KB   1.8MB/s   
>00:00 ETA
>Couldn't write to remote file "//CH2ICST.X.Y.R1": Failure

You're not using ftp. You're using sftp, which is entirely different and not 
related to ftp at all.

--
Walt

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to