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: September 1, 2010  5:08 PM
UPDATED: September 2, 2010  12:54 AM

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 <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzakc/rzakcmstedtmsk.htm">EDTMSK() field-level keyword</a>. 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:  September 2, 2010  12:54 am  by  CharlieBrowne   32,915 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,915 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _