The following rules describe how to assign attribute values to attributes declared in a DEFINE OPERATOR statement:
- Assign values to attributes in the DEFINE OPERATOR statement if:
- There is no default value, such as for the UserName and UserPassword attributes.
- The job cannot use the default value and you do not want to assign a value in the APPLY statement that references the operator.
- Do not assign values for declared attributes if:
- The operator uses the default attribute value; for example, the default On (enabled) for the Stream operator ArraySupport attribute.
- The APPLY statement that references the operator assigns an attribute value. If an attribute value is assigned in the operator definition and is also assigned in the APPLY statement, the APPLY value overrides the value in the operator definition. The override value applies only to the occurrence of the operator where the override value is assigned. All other occurrences in the script are unaffected. For further information, see the "Attribute Value Processing Order" section in Specifying Job Variables for Attribute Values.
- The value assigned to an attribute (anywhere in the script) is a job variable, using the form attributeName = <@jobVariableName>, then the variable will be replaced by the value from the highest priority job variable source.
For further information on setting job variables and the processing order of job variable sources, see Specifying Job Variables for Attribute Values.
- The value assigned to an attribute must match the data type of the attribute.