Overview

The swbatch utility enables you to process any number and combination of the following functions in a single batch operation:

Start a case, with or without associated case data.
Issue an event for a case, with or without associated case data.
Close one or more cases.
Purge one or more cases.

Note 

The swbatch utility is optimized to perform these operations on a large number of cases as a single batch. To perform these operations on an individual basis you may find it easier to use the swutil utility instead. See Using the swutil Utility.

The swbatch utility is a command-line utility:

Commands can be presented to swbatch either from a command file or from standard input, for example, as redirected output from another process.
Case data can be embedded in the command file or input stream, in abox format.

Note 

Each of the requests processed by swbatch is performed as a separate transaction. If multiple cases are to be processed, such as when using PURGE or CLOSE, then these are split up into a number of transactions.