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
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nirmal khatri
Hello Abhishek.
Please send code to nirmal_ec1984@indiatimes.com
Thank you in advance.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / bhaskar
Hello Abhishek.
Please send code to bhaskar582@gmail.com
Thank you in advance.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / avinash
Hi Abhishek, Please send me the code to
avinash.8385@gmail.com.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ankur jain
Hello Abhishek,
Please send me the same code at 21ankur@gmail.com
Thanks in Advance..
Ankur
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / ajeet
Hi Abhishek,
Please send me the same code at ajeet.sri@gmail.com
Thanks,
Ajeet
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nirmal
Has anyone got that. Then please send it to
nirmal_ec1984@rediffmail.com. Abhishek do you really have that?
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / abhishek bajpai
Hi All,
I checked in here after a real long time.
Will fwd the code to all of u tomorrow morning from my
system...!!
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nirmal
Abhishek,
I haven't received yet. Please resend it to
nirmalec1984@gmail.com.
Thank you in advance.
| Is This Answer Correct ? | 0 Yes | 0 No |
I have to execute 12000 CL Commands one by one.. So, I have created a file called COMMAND. This file has only 1 field called STRING. This file had 12000 records, and all these records are CL Commands (ex: CALL PGM(PGM1)), etc) I have written a CL which will read all the record and do sbmjob.. But it is not working... Plz help me to exexute all these 12000 commands..
What is the difference between a Physical File & a Logical?
28 Answers Accenture, ACS, IBM,
what is the command to know how many lf are related to a pf?
how to see the error messages for each command in cl?
Please give me the code for A=A+1 in cl program?
what is meant by object lock requests,held locks and locks waiting to be applied(wrkobjlck) why should we apply for locks.Please explain sir.
How many libraries can be there in library list ?
(1)In Cl Program,Are PGM and ENDPGM mandatery Keywords or not .If yes, please tell me why these keywords is necessary. (2)If we will not define these two keywords (PGMand ENDPGM) then any error will be come or not.
Is LDA can be access accross the Job?
what are two types of record are used in subfile?
what is the sequence when using cursor?
define what a data queue is along with a brief example of what it may be used for?