Created
April 20, 2022 15:21
-
-
Save dkelosky/5f6b1b8d0968baefdd373879b5b1f96d to your computer and use it in GitHub Desktop.
index.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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