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.