Skip to content

Instantly share code, notes, and snippets.

@gkspranger
Last active November 18, 2024 21:35
Show Gist options
  • Save gkspranger/51bb26c97b6e9038575858b31c5e12bb to your computer and use it in GitHub Desktop.
Save gkspranger/51bb26c97b6e9038575858b31c5e12bb to your computer and use it in GitHub Desktop.
running an MVS program
var exec = require("bldz/std/exp/exec")
console.log("hello world")
//ICONV EXEC PGM=EDCICONV,
// PARM=('FROMCODE(IBM-037),TOCODE(UTF-8)')
//SYSUT1 DD DISP=SHR,DSN=SOME.INPUT
//SYSUT2 DD DISP=SHR,DSN=SOME.OUTPUT
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
var r = exec.pgm("EDCICONV", {
parms: "FROMCODE(IBM-037),TOCODE(UTF-8)",
dds: [
{
name: "SYSUT1",
attributes: {
dsn: "myuser.test.myinput",
status: "SHR",
}
},
{
name: "SYSUT2",
attributes: {
dsn: "myuser.test.myoutput",
status: "SHR",
}
},
{
name: "SYSPRINT",
attributes: {
status: "SYSOUT",
}
},
],
})
console.log(JSON.stringify(r, null, 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment