PURPOSE: The INPUT; OUTPUT EDIT option controls the application of any IE (input edit) or OE (output edit) clauses specified in a Schema Definition (SD). This command is valid in a CM, PM, SF or as a direct command.
{ENABLE; DISABLE} {INPUT; OUTPUT} EDIT [{IF; UNLESS} clause]
ENABLE |
applies the input or output edit as specified in the SD. This is the default state. |
DISABLE |
prevents the application of the input or output edit option. DISABLE INPUT EDIT requires data to be entered in its storage format rather than in the format expected by the IE clause. DISABLE OUTPUT EDIT causes data to be output for use or display in its storage format. |
{IF; UNLESS} clause |
specifies certain criteria that must be met for the ENABLE or DISABLE command to take effect. |
This example shows input edit on a phone number with INPUT EDIT enabled and then with INPUT EDIT disabled.
*USE DS PHONE
*ENABLE INPUT EDIT
*LIST SD PHONE
00001 PHONE, C, 10, IE = "###-###-####"
*ENTER WITH PROMPTS NO CHECK
PHONE: 408-555-7777
PHONE: ***
*DISABLE INPUT EDIT
*ENTER WITH PROM [PTS NO CHECK
PHONE: 4085557777
PHONE: ***
SEE ALSO: IE, OE options - Field Definitions