Previous Topic

Next Topic

Book Contents

Book Index

Saving Data as Opposed to Using Local Variables

Local variables are those variables that are used within a rule, but are not saved permanently. At the time your rule terminates, whatever values that existed in its local variables are wiped from memory.

You may instead want to save these variables in the Control-M/Analyzer database, or in an AutoEdit PDS library member, for the following reasons:

The following discusses the advantages and disadvantages of either saving variables to the Control-M/Analyzer database, or alternatively, an AutoEdit PDS library member. The nature of the data you need to save in a balancing application will help you determine which of these methods to use.

Saving Data in the Control-M/Analyzer Database

When deciding if you should store variables in the Control-M/Analyzer database, consider the following questions:

If you cannot affirmatively answer at least one of these questions, you should consider alternatives to storing data permanently in the database.

An alternative to storing those variables that are only required for debugging or audit trail purposes, is to print the values of the variables in a report. There are two standard reports provided when a rule executes—the SYSUSER report and the SYSPRINT Invocation Report. For debugging and audit trail purposes, it is probably better to print these local variable values using DO PRINT parameters to the Invocation Report.

Saving Data in AutoEdit Members

There are several advantages and disadvantages to saving data in an AutoEdit member as opposed to the Control-M/Analyzer database.

The advantages are:

The disadvantages are:

Parent Topic

Preparing for Production — Application