Program Flow for Batch Programs

The following diagram shows the sequence of events when you run a batch program.

Execute all batch programs through the Batch Job Control system. If you are not familiar with this system, see Lawson Administration: Jobs and Reports.

When you run a job request, Batch Job Control puts the request in a queue where it waits until all previously submitted jobs have run. Once ready, Batch Job Control passes the parameters to the Environment software, which performs edits on the parameters. The batch program's procedure division is processed, which may perform further edits. If there are errors, they are sent to an output file.

If there are no errors, report processing continues.

The Environment software handles report output. For more information, see Report Definition.

When the report finishes, the request form is updated with a message saying that the program completed successfully. You can then resubmit the request or delete it.