Sorry! my mailer let my previous post go while I was editing! Let me try again......
With Co:Z SFTP, its trivial to use shell scripting in batch to do this. For example: //SFTPPUT EXEC PROC=SFTPPROC //SFTPIN DD * cert="MY-RING:RSA-CERT" user=myuser host=my.windows.host.com lzopts="mode=text,linerule=crlf" lfile=//DD:MYDD suffix=$(date +%Y-%m-%d:%H:%M:%S) rfile="C:\SFTP\testpla.np.$suffix" # This calls a sample batch script which sends lfile to rfile . $script_dir/sftp_put.sh //MYDD DD DISP=SHR,DSN=.... //* Kirk Wolf Dovetailed Technologies http://dovetail.com On Mon, Nov 13, 2017 at 12:49 PM, Kirk Wolf <k...@dovetail.com> wrote: > With Co:Z SFTP, its trivial to use shell scripting in batch to do this. > > For example: > > //SFTPPUT EXEC PROC=SFTPPROC > //SFTPIN DD * > cert="MY-RING:RSA-CERT" > user=myuser > host=myhost > lzopts="mode=text" > lfile=//DD:MYDD > rfile=/etc/profile > > . $script_dir/sftp_put.sh > > //MYDD DD DSN=COZUSER.SFTPGET.DATA,DISP=(MOD,KEEP), > // DCB=(LRECL=80,RECFM=FB),SPACE=(CYL,(3,1)) > //* > > date +%Y-%m-%d:%H:%M:%S > > Kirk Wolf > Dovetailed Technologies > http://dovetail.com > > On Mon, Nov 13, 2017 at 12:40 PM, Paul Gilmartin <0000000433f07816-dmarc- > requ...@listserv.ua.edu> wrote: > >> On Mon, 13 Nov 2017 12:33:49 -0600, Kirk Wolf wrote: >> >> >sftp is a shell command, so it would seem more natural to use a z/OS Unix >> >shell script to do what you want. >> > >> Or Rexx. >> >> ABC! (Anything But CLIST.) >> >> -- gil >> >> ---------------------------------------------------------------------- >> 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