5 pts.
 AS/400 Date edit - I/O
I have a date field used for input and I want to display the field as   /  /  . and allow the user to type in the numbers where the field puts the numbers where they belong and doesn't disturb the edit for slashes.  I thought there was an attribute that would do this, can anyone help me??

Software/Hardware used:
iSeries/AS400
ASKED: Sep 1, 2010  5:08 PM GMT
UPDATED: September 2, 2010  12:54:20 AM GMT
66,925 pts.

Answer Wiki:
If you use the edit code, the user could key in 010203 and get 01/02/03.
If you want distinct fields you need to code 3 seperate input fields.
You could do something like
MM / DD / YY
Remember you need the extra space to the attribute byte.

==========================================================

You are probably thinking of the EDTMSK() field-level keyword.

If you've used it before, you'll pick up its nuances quickly. If not, you might plan some time for practice.

Note that it can work best when an EDTWRD() is also used rather than an EDTCDE(), though both are possible.

Tom
Last Wiki Answer Submitted:  Sep 2, 2010  0:54 AM (GMT)  by  TomLiotta   66,925 pts.
Latest Answer Wiki Contributors:  CharlieBrowne   24,710 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _