JES Client

Handling IBM z/OS JES spools using Java technologies based on the IBM z/OS FTP server.

License

License

Categories

Categories

CLI User Interface
GroupId

GroupId

de.lars-sh
ArtifactId

ArtifactId

jes-client
Last Version

Last Version

0.9.2
Release Date

Release Date

Type

Type

jar
Description

Description

JES Client
Handling IBM z/OS JES spools using Java technologies based on the IBM z/OS FTP server.
Project URL

Project URL

https://lars-sh.github.io/jes-client/
Source Code Management

Source Code Management

https://github.com/lars-sh/jes-client

Download jes-client

How to add to project

<!-- https://jarcasting.com/artifacts/de.lars-sh/jes-client/ -->
<dependency>
    <groupId>de.lars-sh</groupId>
    <artifactId>jes-client</artifactId>
    <version>0.9.2</version>
</dependency>
// https://jarcasting.com/artifacts/de.lars-sh/jes-client/
implementation 'de.lars-sh:jes-client:0.9.2'
// https://jarcasting.com/artifacts/de.lars-sh/jes-client/
implementation ("de.lars-sh:jes-client:0.9.2")
'de.lars-sh:jes-client:jar:0.9.2'
<dependency org="de.lars-sh" name="jes-client" rev="0.9.2">
  <artifact name="jes-client" type="jar" />
</dependency>
@Grapes(
@Grab(group='de.lars-sh', module='jes-client', version='0.9.2')
)
libraryDependencies += "de.lars-sh" % "jes-client" % "0.9.2"
[de.lars-sh/jes-client "0.9.2"]

Dependencies

compile (3)

Group / Artifact Type Version
commons-io : commons-io jar 2.8.0
commons-net : commons-net jar 3.8.0
de.lars-sh : utils jar 0.9.11

provided (2)

Group / Artifact Type Version
de.lars-sh : utils-annotations jar 0.9.11
com.github.spotbugs : spotbugs-annotations jar 4.2.0

test (6)

Group / Artifact Type Version
de.lars-sh : utils-test jar 0.9.11
org.assertj : assertj-core jar 3.18.1
org.jooq : joor-java-8 jar 0.9.13
org.junit.jupiter : junit-jupiter-api jar 5.7.0
org.junit.jupiter : junit-jupiter-engine jar 5.7.0
org.mockito : mockito-core jar 3.6.28

Project Modules

There are no modules declared in this project.

JES Client

Handling IBM z/OS JES spools using Java technologies based on the IBM z/OS FTP server.

Changelog | JavaDoc | Generated Reports

Getting started

Here's a Maven dependency example:

<dependency>
	<groupId>de.lars-sh</groupId>
	<artifactId>jes-client</artifactId>
	<version><!-- TODO --></version>
</dependency>

To learn more about the JES Client check out its JavaDoc.

Using JES Client

The following shows the JesClient used inside a try-with-resource statement. The constructor descriptions describe further details.

// Connect and login via simplified constructor
try (JesClient jesClient = new JesClient(hostname, port, username, password)) {

	// Submit JCL
	Job job = jesClient.submit(jclContent);

	// Wait for job to be finished
	if (!jesClient.waitFor(job)) {
		// Handle the case, a finished job cannot be found inside JES spool any longer
		throw ...;
	}

	// Gather job status details
	Job detailedJob = jesClient.getJobDetails(job);

	// Gather finished jobs outputs
	List<JobOutput> jobOutput = jesClient.get(job);

	// Delete job from JES spool
	jesClient.delete(job);

// Logout and disconnect using try-with-resource (close method)
}

Versions

Version
0.9.2
0.9.1
0.9.0