Here's an example using Co:Z SFTP:

//SFTPCONN EXEC PROC=SFTPPROC
//SFTPIN DD *
user=myuser
host=myhost.myco.com
lzopts="mode=text"
rfile="/app/data/remotefile.txt"

. $script_dir/sftp_connect.sh <<EOB
lzopts $lzopts
get $rfile //DD:MYDD
EOB

//MYDD  DD DSN=COZUSER.SFTPGET.DATA,DISP=(MOD,KEEP),
//        DCB=(LRECL=80,RECFM=FB),SPACE=(CYL,(3,1))
//

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 4/14/21 2:12 PM, Billy Ashton wrote:
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

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

Reply via email to