Defining Codes for Hot Spots

Access the User Defined Codes form.

You must define UDCs for hot spots in UDC table 32/HS. After you define the hot spot, you can define an assembly inclusion rule with a corresponding calculation.

If the column named Description 02 does not appear in the UDC table, change the setup of UDC 32/HS:

  1. Select Code Types from the Form menu on the Work With User Defined Codes form.

  2. Type HS in the Code Types QBE (query by example) line and click Find.

  3. Click Select to get to the User Defined Code Types form.

  4. Type Y in the 2nd Line (Y/N) (second line) field.

    This step displays the second description field in the initial UDC table.

  5. Verify that the Numeric (Y/N) field is set to Y.

  6. Click OK and then Close.

  7. Click Add when the Description 02 column appears in the table on the Work With User Defined Codes form.

Codes

Enter the number of the hot spot that is being defined.

Description 01

Enter the description of the hot spot.

Description 02

Enter whether a given code (hot spot) is to be processed as a numeric or nonnumeric statement.

The default value for hot spots is nonnumeric. If the Description 02 column is blank or the value is N, then the hot spot formula is treated as a string (it displays the formula rather than a calculated value).

(Blank) is the equivalent of a default value from data dictionary item CNUM, usually defined as N (nonnumeric).

If the expected answer is numeric and the hot spot is not hard-coded, then the Description 02 column should contain YX, where Y indicates that the result is numeric and X is the number of decimal places to be rounded to.

Hard-coded hot spots are predefined as numeric; therefore, the first digit is not significant for them. You have to enter only the second digit for rounding purposes.

For example, imagine a user-defined hot spot with a calculated value of 1.2345.

If N, then the formula appears, not the calculated value.

If Y2, then 1.23.

If Y9, then 1.2345 (no rounding because decimals do not exceed 9).

Special Handling

Specify a language preference. It has no impact on hot spot calculations.

Hard Coded

Specify whether a particular hot spot is defined as hard-or soft-coded. System-defined hot spots are hard-coded, and this field is Y. If you set up a code for hot spots, this field should be N.