Git Product home page Git Product logo

jesclient's Introduction

jesclient

Overview

z/OS JCL job submit utility. It uses FTP to communicate with JES. The JAR file includes all dependencies.

Features

  • Lists jobs using JOBNAME and/or OWNER filters.
  • Lists job spool files.
  • Reads and prints job spool files.
  • Submits both local and remote JCL jobs.
  • Cancels/purges jobs.

Command-line options

 -h,--help             print this help and exit
 -s,--hostname <arg>   FTP hostname
 -u,--username <arg>   FTP username
 -p,--password <arg>   FTP password
 -o,--owner <arg>      job owner filter
 -j,--jobname <arg>    job name filter
 -l,--list-jobs        list jobs
 -e,--detailed         detailed jobs list
 -i,--list-spool       list spool files
 -r,--read-spool       read spool files
 -b,--submit           submit job
 -f,--filename <arg>   filename
 -d,--dataset <arg>    dataset
 -w,--wait             wait
 -g,--purge            purge

Examples

The following example submits job from a file, waits for job completion, prints job spool and automatically purges it:

$ java -jar jesclient.jar -s"server address" -u"FTP username" -p"FTP password" -b -f IEFBR14.txt -rg
connecting to 'server address'
logging in 'server address' as 'FTP username'
submitting job
job J0134465 submitted
waiting for J0134465 job to complete
job ended with CC=0
reading 'IEFBR14' (J0134465) job spool
<spool output here>
purging J0134465 job
logging out 'server address'

Example of listing jobs by search criteria:

$ java -jar jesclient.jar -s"server address" -u"FTP username" -p"FTP password" -o"*" -j"SSID*" -le 
connecting to 'server address'
logging in 'server address' as 'FTP username'
listing jobs
+----------+------------+----------+--------+-------+------------+-------------+
| Name     | Identifier | Owner    | Status | Class | Completion | Spool files |
+----------+------------+----------+--------+-------+------------+-------------+
| SSIDWLM1 | S0131873   | DB2USER  | ACTIVE | STC   |            |             |
| SSIDADMT | S0094394   | DB2USER  | ACTIVE | STC   |            |             |
| SSIDDIST | S0094361   | DB2USER  | ACTIVE | STC   |            |             |
| SSIDDBM1 | S0094357   | DB2USER  | ACTIVE | STC   |            |             |
| SSIDIRLM | S0094352   | DB2USER  | ACTIVE | STC   |            |             |
| SSIDMSTR | S0094347   | DB2USER  | ACTIVE | STC   |            |             |
+----------+------------+----------+--------+-------+------------+-------------+
logging out 'server address'

Source code

Source code contains 2 implementations of a JES client - one uses FTP to communicate with JES (jes.ftp package) and another uses DB2 stored procedures (jes.db2 package).

Dependencies

jesclient depends on the following libraries:

jesclient's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.