i am new to as400 dds. can anyone tell me the function to get the exact given value. For example, zipcode consists of 6 digits. if the user doesn't enter the value less than 6, it must show an error. thanks in advance
You also need the DSPATR(MDT) keyword. From the DDS manual for the ME option of the CHECK keyword:
This code specifies that at least 1 character of data (a blank is valid) must be typed into the field. Note that when no field currently on the display has been changed, the display station does not enforce mandatory enter. To enforce mandatory enter, specify DSPATR(MDT) for at least one field in each record on the display. For all other fields in the record, CHECK(ME) is then enforced. However, because the device cannot determine if the user has typed data to a field with both DSPATR(MDT) and CHECK(ME), you should also specify DSPATR(ND) so that this field is not displayed.