/zoau-node

A node module for Z Open Automation Utilities (ZOAU)

Primary LanguageJavaScriptApache License 2.0Apache-2.0

zoau-node - A node module for Z Open Automation Utilities (ZOAU)

Table of Contents

Overview

zoau-node is a node module that exposes the Z Open Automation Utilities (ZOAU) APIs in Node.js!

System Requirements

Build and Install

Setup

  • The PATH and LIBPATH environment variables need to include the location of the ZOAU binaries and dlls, respectively.
export PATH=<path_to_zoau>/bin:$PATH
export LIBPATH=<path_to_zoau>/lib:$LIBPATH

For more details on setting up ZOAU, visit: https://www.ibm.com/docs/en/zoau/latest?topic=installing-configuring-zoa-utilities

Quick Start

  1. Create a Node.js project directory and install the zoau-node module:
mkdir my-example-project && cd my-example-project
npm init --yes
npm install zoau-node
  1. Create a file named listds.js containing the following contents:
const ds=require('./lib/zoau.js').datasets;
ds.listing("SYS1.PARM*", {"detailed":true})
	.then(console.log)
	.catch(console.error);

This code will list all datasets starting with SYS.PARM. We have chosen a detailed output, specified as the second parameter.

  1. Run the code
node listds.js

API Documentation

TODO

Contributing

See the zoau-node CONTRIBUTING.md file for details.

Legalities

zoau-node is available under the Apache 2.0 license. See the LICENSE file file for details

Copyright

Licensed Materials - Property of IBM
zoau-node
(C) Copyright IBM Corp. 2020. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication
or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.