Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to write a password mask program in as400?
like the password which i type should be displayed
as '*****' r ###### which the user wishes to dispaly
if u could help me with url r the solution in written code
this will help me

Answer Posted / abhishek bajpai

The above answer is wrong. "EDTMSK" keyword can only
protect certain positions of a field (but can't replace a
character entered by the user).
To do this...

Say the actual field is PASSWD which you want to mask.
Create one more field say XYZ of attributes 1A in non
display mode(DSPATR(ND)) with CHECK(ER)keyword. Ur cursor
will remian on this field. Keep the actual field PASSWD as
protected.
Now, what will happen here is, when u enter any character
in XYZ, due to CHECK(ER) keyword the control will go back
to the program and then u can populate field PASSWD with
an '*' inside it and EXFMT the display file again with
blank XYZ and PASSWD with a '*'. Do this inside a loop.
Then in the end you can validate the actual password
entered when the user presses ENTER key. The PASSWD field
here is just to display the number of '*' as the number of
characters entered by the user as a password.

Quite long.
If u haven't understood I can send u the actual code. I
have done it previously for a client.

Abhishek

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how do you specify the number of records to roll in a subfile ?

2107


define a shared access path?

1682


what are the two record formats a subfile contain ?

1837


Using %check we are checking monika in mona what is output? What is %SCAN?

1614


when would you use or not use this approach?

1490


define what a data queue is along with a brief example of what it may be used for?

1751


if dspatr(pc) and csrloc were specified for a format, which keyword would have priority?

1618


WHAT IS AS/400 SYNORIO?

3326


what are various techniques to pass parameters from one program to another?

1780


what is the difference between sflclr and sflinz?

1709


What are the record format field mapping options in cpyf?

992


what is a primary file?

1685


How do I remove a flag or check no. or name when a user opens too many sessions?

2175


Explain The Keywords Edtcde & Edtwrd?

1354


what is a logical file?

1733