Thanks for mentioning.
Here's an example:

//SFTPCONN EXEC PROC=SFTPPROC 
//SFTPIN DD *   
pwdsn="COZUSER.COZ.SAMPJCL(PW)" 
user=myuser
host=myhost 
lzopts="mode=text"
rdir="/app/data/"
rfile="remotefile.txt" 
                                                            
. $script_dir/sftp_connect.sh <<EOB 
lzopts $lzopts
-mkdir $rdir 
cd $rdir
ls -al
get $rfile //DD:MYDD
EOB 

//MYDD  DD DSN=COZUSER.SFTPGET.DATA,DISP=(MOD,KEEP), 
//        DCB=(LRECL=80,RECFM=FB),SPACE=(CYL,(3,1)) 
//*  
Co:Z can be used free under the terms of our Community License.  Enterprise 
license and support agreements are also available.  
https://coztoolkit.com/support.html

Kirk Wolf
Dovetailed Technologies, LLC
http://coztoolkit.com

Note: Our website and domain name have changed from dovetail.com to 
coztoolkit.com


On Thu, Sep 1, 2022, at 10:01 AM, rpinion865 wrote:
> Nobody has mentioned Coz from https://coztoolkit.com
> 
> 
> 
> 
> Sent with Proton Mail secure email.
> 
> ------- Original Message -------
> On Thursday, September 1st, 2022 at 10:33 AM, Tom Brennan 
> <[email protected]> wrote:
> 
> 
> > On 9/1/2022 12:05 AM, Paul Gilmartin wrote:
> > 
> > > Might be possible with either BPXPATCH or BPXWUNIX. Set up your
> > > public-private keypairs on z/OS with ssh-keygen and copy the
> > > public key to Linux.
> > 
> > 
> > Yes, that's what I used to do. Something like this:
> > 
> > //SFTP EXEC PGM=BPXBATCH,REGION=8M,
> > // PARM='SH sftp -b sftpcmds targetid@targetserver'
> > 
> > But like you say (and if nothing has changed over the years), you need
> > to setup keys. And sftp only worked with USS files so an OCOPY or
> > similar was needed for z/OS datasets, and some temp USS space.
> > 
> > And I used to use scp too, because it would do the EBCDIC/ASCII
> > conversion for me.
> > 
> > ----------------------------------------------------------------------
> > 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

Reply via email to