Validating Dictionary Items

Use the Dictionary Validation screen to make a dictionary item a validated field. A field is validated when its values must meet pre-defined requirements. To define validation requirements, do one of the following:

You can also define a subroutine to manipulate input before it is validated. For example, a pre-input subroutine could strip spaces or capital letters from the data.

To validate a dictionary item:

  1. From the Maintenance > Eclipse Dictionary menu, select Dictionary Maintenance to display the Eclipse Dictionary Maintenance screen.

Note: If prompted, log on to the character-based system.

  1. Complete the File Name and Dict ID fields for the item to set up as validated.

  2. Use the Valid hot key to display the Dictionary Validation screen.

  3. To define a subroutine to manipulate input before the system validates it, in the Pre-Input Subroutine field, press F10 and select a subroutine.

  4. In the Post Input Valid Type field, press F10 to select one of the following options:

Options

The data being validated...

Control

must match the data in the control maintenance record identified in the Record/File/Subr field.

File

must match one of the records in the file identified in the Record/File/Subr field. For example, you can use the PRICE.LINE file for validation of Price Line IDs.

List

must match one of the items in the list created using the Valid List hot key.

Subr

will be validated by the subroutine identified in the Record/File/Subr field.

 

  1. Enter one of the following in the Record/File/Subr field. Your entry depends on the option selected in the Post Input Valid Type field.

If you selected...

Then...

Control, File or Subr

enter the name of the control maintenance record, file, or subroutine to use for validation.

List

an asterisk (*) displays in this field. Use the Valid List hot key to enter a list of data against which the system must validate the input for this dictionary item. Each line of text represents a valid entry. The text is case sensitive.

  1. Press Esc to save this information and return to the Dictionary Maintenance screen.

  2. Press Esc again to save the updated dictionary item.

See Also:

Creating Dictionary Items

Editing Dictionary Items

Testing Dictionary Items

Eclipse Dictionary Overview

Tasks Not Available in Solar