Use the Batch Processor

The Batch Processor interface provides an exceptional facility for executing data sets that contain SQL commands, Batch Processor commands, or both. The Batch Processor lets you process data sets that contain these commands, in restartable script-like fashion, to perform the following actions:
dm20
The Batch Processor interface provides an exceptional facility for executing data sets that contain SQL commands, Batch Processor commands, or both. The Batch Processor lets you process data sets that contain these commands, in restartable script-like fashion, to perform the following actions:
  • Call Db2 utilities and application programs dynamically
  • Execute Db2 (DSN) commands
  • Perform VSAM functions
To create job streams that perform many different Db2 functions, use Batch Processor commands and SQL commands.
The Batch Processor interface also includes its own UNLOAD program (.CALL UNLOAD) that can be called in place of the IBM Db2 UNLOAD utility. The UNLOAD utility can use pre-allocated or dynamically allocated data sets.
Using the Batch Processor interface, you can:
  • Execute Batch Processor data sets online or in batch mode
  • Control the generation of an audit trail
  • Permit errors to occur during execution
Batch Processor packages are bound at the active Db2 function level as specified with function level (SSIDVERF) in the SETUP global parmlib member. This functionality enables you to exploit Db2 functionality in Batch Processor scripts for features that are associated with Db2 function levels.