Previous Topic: Options

Next Topic: Sample Usage


Parameters

field-name-a

Enter the name of any file data field or work field in the run. CA JARS Wizard examines the contents of this field as each record is processed. It then looks for a match in the DECODE table and assigns a value to field-name-b. If there is no match, processing continues.

field-name-b

Enter the name of any file data field or work field. If the field was not previously defined, a new data or work field is established. The name can have a suffix code to specify type, format, and length. It can be in character or numeric format, depending on the values specified in the DECODE list that follows. If nothing is specified, CA JARS Wizard assumes that it is four bytes, packed decimal.

The value in field-name-b is either reset to zero or is blank at the beginning of each record processing cycle.

field-name-a-value

List the possible values that can appear in field-name-a. The field can be character or numeric.

field-name-b-value

Specify what value should be assigned to field-name-b when the matching field-name-a value occurs. This value can be in either character or numeric format. If it contains a special character, it should be enclosed in single quote marks.

ELSE

Optionally, specify a default value for field-name-b. This value is assigned when CA JARS Wizard cannot find a match for field-name-a in the DECODE table. If there is no ELSE and there is no match, then field-name-b either remains set to zero, blank, or is set to the initial value of its DEFINE statement.