Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Groory script to run the cobol pgm #12

Open
balbupra opened this issue May 24, 2019 · 1 comment
Open

Groory script to run the cobol pgm #12

balbupra opened this issue May 24, 2019 · 1 comment

Comments

@balbupra
Copy link

Hello
First I have complied the program then link edit and finally I am trying to execute it.
i am getting return code : 8413184 while executing the below script.
//Way to run the JCL

  println ("Run the cobol program")
  def run = new MVSExec().pgm("hello").parm("")
  run.dd(new DDStatement().name("TASKLIB").dsn("TT6PBE1.BUILD.LOAD(hello)").options("shr"))
  run.dd(new DDStatement().name("SYSOUT").options("cyl space(5,5) unit(vio) blksize(80) lrecl(80) recfm(f,b) new"))
  run.dd(new DDStatement().name("SYSPRINT").options("cyl space(5,5) unit(vio) blksize(80) lrecl(80) recfm(f,b) new"))
  run.copy(new CopyToHFS().ddName("SYSOUT").file(new File("/u/tt6pbe1/TT6PBE1/test1/cobol/out.log")))
  run = run.execute()
  println("run return code: $run")
@ghost
Copy link

ghost commented May 26, 2019

Hi, I may be able to help but will need some more info. Have you tested your DBB environment's configuration to make sure all the moving parts are working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant