sftp is a shell command, so it would seem more natural to use a z/OS Unix
shell script to do what you want.



Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Mon, Nov 13, 2017 at 8:04 AM, venkat kulkarni <[email protected]
> wrote:

> Hello Group,
>
>
> I am not good at CLIST but we have requirement of using SFTP with below
> detail
>
>
>  1) We have to send one mainframe PS dataset to windows system 3 times in a
> day using SFTP
>
>
> 2) For doing this, I wrote below command list which can achieve this.
>
>
>
> OPUT 'TEST1.PR.BAS'    '/sftp/file/tstpre.np'
>
> OSHELL { echo 'lcd /sftp/file/' ; +
>
>          echo 'bin'; +
>
>          echo '!chmod 660 tstpla.np'; +
>
>          echo 'cd C:\SFTP';  +
>
>          echo 'mput tstpla.np'   ; +
>
>          echo 'lcd /sftp/file/' ; +
>
>          echo '!rm -r /sftp/file/tstpla.np' ; +
>
>        sftp -p -v [email protected]. <[email protected]>125
>
>
> /*
>
>
>
> I will use this code into one member and called by JCL as input.
>
>
> 3) But as requirement is to send this file 3 times in a day, so every time
> this file gets over written by previous file. So, to isolate this, we would
> like to add date and time stamp at the end of file  every name before
> sending from Mainframe to window.
>
> So, that every time file name will be different and will not be over
> written.
>
>
> Can you please help me to achieve this using CLIST to call system date and
> time value into variable and then put this variable as LLQ of this file and
> then transfer to windows.
>
>
>
> Thanks in advance.
>
>
> Regards
>
> Venkat
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to