Skip to content

Instantly share code, notes, and snippets.

@dkelosky
Created April 20, 2022 15:21
Show Gist options
  • Save dkelosky/5f6b1b8d0968baefdd373879b5b1f96d to your computer and use it in GitHub Desktop.
Save dkelosky/5f6b1b8d0968baefdd373879b5b1f96d to your computer and use it in GitHub Desktop.
index.mjs
import { zowe } from "./zowe.mjs";
const resp = zowe("jobs list jobs", {json: true, silent: true});
const jsonResp = JSON.parse(resp);
jsonResp.data.forEach(job => {
console.log(`${job.jobid} ${job.jobname} ${job.status}`);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment