IBM / dbb

The helpful and handy location for finding and sharing example IBM Dependency Based Build (DBB) scripts and snippets.
Apache License 2.0
57 stars 132 forks source link

Groory script to run the cobol pgm #12

Open balbupra opened 5 years ago

balbupra commented 5 years ago

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 commented 5 years ago

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?