Program Flow for Batch Programs

When you run a batch job, the Environment (lapm or IOS) performs edits on the parameters, and then invokes the batch program, which may perform further edits. If there are errors, they are sent to the printer and either to the originating user or to the Lawson message queue. If there are no errors, the program continues the batch processing.

When a batch program finishes, lapm or IOS updates the parameter form with a message indicating that the program completed successfully. You can then either resubmit the request, transfer to another form, or exit to the main menu. The lapm program and the IOS programs also handle print files.

Batch Program Flow Example

The diagram on the next page shows the sequence of events when you run a batch program.

Illustration: Batch program flow