File Transfers Using REXX Scripts and a JCL Procedure
SSH Tectia Server for IBM z/OS contains example file transfer procedure and REXX functions for
sshg3 client applications.
The following PROC, REXX functions, and examples can be found from
SAMPLIB and they can be easily modified according to the
customer environment and needs. The REXX functions can also be called
from user-written REXX programs.
SSZJSAMP: Comprehensive JCL example file containing file transfer and remote command examples
SSZJSFTP: Example JCL file for running multiple
SSZP: JCL Procedure for running REXX functions
Enabling the File Transfer JCL Procedure
By default, the JCL prodecure is set to run from the default
the procedure and REXX functions are run from some other location,
EXECLIB parameter on the
In this example multiple
sftpg3 file transfer commands are run
//SFTP EXEC SSZP,
//SFTCMDS DD *
sget text_file.txt //'USERID.TEST.DATA.SET'
sput //'USERID.TEST.DATA.SET' demo_file.txt
sget demo_file.txt //PDS(MEM2)
sput //'USERID.PDS(MEM2)' member2
lsite O=FB R=80
sget jcl.txt //'USERID.JCLLIB(JCL1)'