Your browser does not support HTML5 local storage or you have disabled it. Some functionality on this site, including saving your privacy settings and offering you special discounts, uses local storage and may not work with local storage disabled. We recommend allowing the use of local storage in your browser. In some browsers, it is the same setting used for disabling cookies.

SSH Tectia 
PreviousNextUp[Contents] [Index]

    About This Document >>
    Installing SSH Tectia Server for IBM z/OS >>
    Getting Started with SSH Tectia Server for IBM z/OS >>
    Setting up Non-Interactive Server and User Authentication >>
    Setting up Non-Interactive Secure File Transfer >>
        File Transfer Profiles >>
        File Transfer Examples>>
            File Transfer Example Using scp2
            File Transfers Using REXX Scripts and a JCL Procedure

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 scp2, sftp2, and ssh2 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 sftp2 commands
  • SSZP: JCL Procedure for running REXX functions
  • SSZRED: REXX function for miscellaneous editing
  • SSZSTD: REXX function for printing standard out and standard error
  • SSZRFT: REXX function for executing multiple sftp2 commands
  • SSZRPUT: REXX function for single file put (sput)
  • SSZRGET: REXX function for single file get (sget)
  • SSZRSSH: REXX function for running remote commands using Secure Shell

Enabling the File Transfer JCL Procedure

By default, the JCL prodecure is set to run from the default SAMPLIB location, //'&SYSUID..SSZ.SRVR550.SAMPLIB'. If the procedure and REXX functions are run from some other location, modify the EXECLIB parameter on the SSZP procedure accordingly.

Example 1: SSZJSFTP

In this example multiple sftp2 file transfer commands are run using the SSZP procedure:

//SFTP    EXEC SSZP,
//             PARM='SSZRFT'
//*
//SFTCMDS  DD  *
open username@unix_server.example.com
sget text_file.txt //'USERID.TEST.DATA.SET'
sput //'USERID.TEST.DATA.SET' demo_file.txt 
lrm //TEST.DATA.SET 
sget demo_file.txt //PDS(MEM2) 
rm demo_file.txt 
sput //'USERID.PDS(MEM2)' member2 
sget jcl.txt /FTADV:P=FB80///'USERID.JCLLIB(JCL1)'

PreviousNextUp[Contents] [Index]


[ Contact Information | Support | Feedback | SSH Home Page | SSH Products ]

Copyright © 2007 SSH Communications Security Corp.
This software is protected by international copyright laws. All rights reserved.
Copyright Notice

===AUTO_SCHEMA_MARKUP===