edtmsk in AS/400

85 pts.
Tags:
AS/400 passwords
how to write a password mask program in AS400, in which user can display the character as '****' or '######'

Answer Wiki

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

You can set the field with DSPATR(ND) for entering a password.
But with a 5250 data stream since the machine does not read the screen until you hit ENTER, you cannot key one character and display anther untile ENTER is depress.

Discuss This Question: 1  Reply

 
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
  • TomLiotta
    I'm pretty sure that there's no good way to get this done as long as the standard 5250 interface will be used. I can imagine that the Dynamic Screen Manager (DSM) APIs could be used to construct a process, but it'd take an experienced DSM developer to be sure. Beyond that, I've only seen one potentially useful way to simulate this with "normal" display file processing. Define two fields for password handling. One field is a 1-byte input field that is DSPATR(ND) CHECK(ER). This will be the password entry field. Each typed character will cause CHECK(ER) to input the character. The other field is an output field as big as your passwords are allowed to be. Every time a character is typed into the first field, the program adds a '*' character to the string that gets written back out to this field. The program loops on input until some F-key signals the loop to end. The password characters are concatenated into an internal field at the same time each '*' is concatenated to the output field. Pretty ugly, but it can be made to work if absolutely required. (I credit "Murphy" with pointing out this technique in case he runs across this posting.)
    125,585 pointsBadges:
    report

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