Is there a way to call a Lawson batch program from another?

Sort:
You are not authorized to post a reply.
Author
Messages
Sam Simpson
Veteran Member
Posts: 239
Veteran Member
    Almost related to this question, is there a way to call a Lawson batch program from another
    cobol program(custom). I tried INVOKE but this is only for online programs. I never have tried this before so my appreciation for any help.
    John Henley
    Senior Member
    Posts: 3348
    Senior Member
      No, you'd have to create a job record and submit it using the 900-CREATE-AND-SUBMIT-JOB API.

      You can do a grep on $LAWDIR/prodline/*src/*PD for 900-CREATE-AND-SUBMIT-JOB for some examples. I know BR21 uses that logic...
      Thanks for using the LawsonGuru.com forums!
      John
      Sam Simpson
      Veteran Member
      Posts: 239
      Veteran Member
        Thanks very much John. The api works like a charm...
        You are not authorized to post a reply.