Your browser does not allow storing cookies. We recommend enabling them.

SSH

Submitting a Job

In this example it is assumed that the JCL script br14.jcl with the following contents is stored in the directory /home/user1/src/jcl/ on a Unix host:

//USERJ0  JOB ,,CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),
//            NOTIFY=&SYSUID
//*
//STEP00  EXEC PGM=IEFBR14
//

Submit a job for execution using sftpg3 and receive a notification of the ID assigned to the submitted job:

$ sftpg3 user1@mf_server 1 
sftp> sput /home/user1/src/jcl/br14.jcl /ftadv:filetype=jes,c=ISO8859-1,d=IBM-1047/ 2
br14.jcl                           |   100B |      29B/s | TOC: 00:00:03 | 100%        
07.57.19 JOB03198  $HASP100 USERJ0   ON INTRDR              FROM STC03197 USER17      
07.57.20 JOB03198  IRR010I  USERID USER1   IS ASSIGNED TO THIS JOB.
JOBID=JOB03198 3
1

Open an SFTP session from your client to the target server (in this example mf_server).

2

Submit the job (/home/user1/src/jcl/br14.jcl) using sput. Use a file transfer advice string to set file type to JES and to specify code set conversion. In this example the code set is ISO8859-1 during the transfer and the server should store the data set with the IBM-1047 code set.

3

At the end of the output you can see the job ID (JOB03198) that was assigned to the job.


 

 
Highlights from the SSH.COM blog:

  • Cryptomining with the SSH protocol: what big enterprises need to know about it

    Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency.
    Read more
  • SLAM the door shut on traditional privileged access management

    Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity?
    Read more
  • We broke the IT security perimeter

    Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so.
    Read more