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:
Create a list of acceptable values for the field.
Identify a file or control maintenance record that contains a list of acceptable values.
Identify a subroutine that validates the field values.
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:
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.
Complete the File Name and Dict ID fields for the item to set up as validated.
Use the Valid hot key to display the Dictionary Validation screen.
To define a subroutine to manipulate input before the system validates it, in the Pre-Input Subroutine field, press F10 and select a subroutine.
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. |
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. |
Press Esc to save this information and return to the Dictionary Maintenance screen.
Press Esc again to save the updated dictionary item.
See Also: