AS/400 Date edit – I/O

5 pts.
Tags:
AS/400
AS/400 date format
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following