Tier Aware Batch Processing

LANSA

Tier Aware Batch Processing
Example 136 - Rating: advanced
The Things that Make Up this ExampleTo Execute this Example

Batch processing is an important part of any large scale application. Any task expected to take too long for someone to wait for it to complete should always at least have an option to be run in a batch mode. The example demonstrates:
  • Some programming techniques that can be used in tier managed batch applications.
  • Use of the BATCH (batch) and DATA (database) tiers.
  • How the use of a tier scheme can automatically allow batch jobs to be started on the tier that will offer them the best possible batch processing throughput.

This form (VL_SAM136) acts as a simple interface to a batch function named VSAM137.

The form shows the current contents of the PSLMST employee table (from the DATA tier) and also allows you to directly update employee name details (on the DATA tier) via the "Update Employee" button.

However, this form's primary role is to submit function VSAM137 as a batch task.

VSAM137's batch task is to accept an employee number as input and then update the associated employee's name with a date-time stamp like ==DDDDDDHHMMSS==.

VSAM137's batch task itself is quick (too quick to be a real batch task) but it's nature means you can quickly and easily confirm the results of VSAM137's batch activities.

The easiest way to understand all of the preceding points is to cut/paste/compile the examples and then combine execution of them with reading of the comments contained within them.

Keywords
TierManagement
Multi-TierRemote Procedure
DatabaseClient
Servern-Tier
BatchExample 136