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

 2 Replies
 0 Subscribed to this topic
 17 Subscribed to this forum
Sort:
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
    Posts: 3353
      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...