FWIW, Here's an example using Co:Z SFTP: //SFTPCONN EXEC PROC=SFTPPROC //SFTPIN DD * user=myuser host=myhost.myco.com lzopts="mode=text" lfile="//DD:MYDD" rfile="/app/data/remotefile.txt"
. $script_dir/sftp_connect.sh <<EOB lzopts $lzopts put $lfile $rfile EOB //MYDD DD DSN=MY.DATA,DISP=SHR // For more information, see: https://dovetail.com/docs/sftp/client.html#client-batch Kirk Wolf Dovetailed Technologies http://dovetail.com PS> Co:Z can be used free subject to the terms of our Community License. Enterprise License and Support agreements are also available. See:https://dovetail.com/support.html On Tue, Apr 20, 2021 at 2:57 PM Longnecker, Dennis < [email protected]> wrote: > Stuff is becoming such a pain. I found in this situation it was much > easier to FTP the file from the mainframe to my PC, and then to use > FileZilla to sftp it up to Broadcom. > > -----Original Message----- > From: IBM Mainframe Discussion List <[email protected]> On Behalf > Of Ward, Mike S > Sent: Tuesday, April 20, 2021 12:44 PM > To: [email protected] > Subject: Re: Anyone have SFTP JCL to share? > > > > > I believe SFTP is part of SSH, so you would have to install that. It's > free from IBM. Then I believe Rocket Software has a freebee that allows you > to use SFTP in batch with MVS datasets. > > -----Original Message----- > From: IBM Mainframe Discussion List <[email protected]> On Behalf > Of Billy Ashton > Sent: Wednesday, April 14, 2021 2:13 PM > To: [email protected] > Subject: [EXT] Anyone have SFTP JCL to share? > > Please Note: This email is from an [EXTERNAL] sender. Do not click on > links or attachments unless you expect them from the sender and know the > content is safe. Please contact the Service Desk if you have any concerns > regarding this message. > > > > Hi everyone! I was just moved to support a CA product (I guess that's > Broadcom now), and have to send in a sensitive file to one of my support > cases. The file is pretty large, and the support tech said I have to copy > it to OMVS to use SFTP for uploading it. I am not sure I have that space > available on the other side, so I was wondering if anyone here has a BPX > batch job that will send a file to CA or Broadcom from the z/OS file > without having to first copy the file to my Unix filesystem. > > I hope this is clear, and that someone can help me. > > Thanks! > Billy > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send email > to [email protected] with the message: INFO IBM-MAIN > > ========================== > This email, and any files transmitted with it, is confidential and > intended solely for the use of the individual or entity to which it is > addressed. If you have received this email in error, please notify the > system manager. This message contains confidential information and is > intended only for the individual named. If you are not the named addressee, > you should not disseminate, distribute or copy this e-mail. Please notify > the sender immediately by e-mail if you have received this message by > mistake and delete this e-mail from your system. If you are not the > intended recipient, you are notified that disclosing, copying, distributing > or taking any action in reliance on the contents of this information is > strictly prohibited. > > ---------------------------------------------------------------------- > 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 > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
