Last active
November 18, 2024 21:35
-
-
Save gkspranger/51bb26c97b6e9038575858b31c5e12bb to your computer and use it in GitHub Desktop.
running an MVS program
This file contains hidden or 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
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