SSH Tectia  
Previous Next Up [Contents] [Index]

    About This Document >>
    Installing SSH Tectia Server for IBM z/OS >>
    Using SSH Tectia Server for IBM z/OS >>
    Configuring the Server >>
    Configuring the Client >>
    Authentication >>
    Troubleshooting SSH Tectia Server for IBM z/OS >>
    Examples of Use >>
        Secure File Transfers Using the z/OS Client>>
        Secure File Transfers Using Windows and Unix Clients>>
        Submitting JCL Jobs over Secure Shell
        Debugging SSH Tectia Server for IBM z/OS>>
        Example of Distributing Keys >>
    Man Pages >>
    Log Messages >>

Submitting JCL Jobs over Secure Shell

Secure Shell can also be used to run JCL jobs remotely. For that an REXX script, submit.rexx (shown below), is needed on the Unix System Services. The script is used to submit the date received from the Secure Shell connection to MVS.

/*   rexx   */

/* SUBMIT   */
/*                                                                  */
/* Contributed by a valued customer who prefers to remain anonymous.*/
/*                                                                  */
/* This script takes jcl and other batch job in stream input        */
/* as standard input, including via pipe or here script             */
/* and submits job to mvs                                           */
/*                                                                  */
address mvs "execio * DISKR STDIN (stem JOB.  "
/*                                                                  */
/* submit MVS job */
say SUBMIT(JOB.)
exit

Example 1: JCL written on Unix host is submitted over Secure Shell.

Copy the submit.rexx script, for example, to /usr/local/bin. The script can be found from the /usr/lpp/ssh2/doc/zOS/samples directory.

cp /usr/lpp/ssh2/doc/zOS/samples/submit.rexx /usr/local/bin/

Launch the Secure Shell connection from the Unix client using the JCL file as standard input.

$ sshg3 username@mf_server /usr/local/bin/submit.rexx < /tmp/my_jcl

Previous Next Up [Contents] [Index]


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

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