Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Program abend when verify password

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Mon Jun 04, 2007 2:03 pm    Post subject: Program abend when verify password
Reply with quote

HI

my USER ID IS eg 'ram' password = ram123

i will verfy the passowrd using cobol code if used id is in password
the job will abend

how i will code for that
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 04, 2007 7:49 pm    Post subject:
Reply with quote

Hello,

Is this a requirement for an application or is this a learning exercise?

Most often password validation is included in the security rules managed by the security administration people and password validation code is not included in the actual application code.

Also, most user-id's are greater than 3 characters.

If you just want to write code to see if a particular set of characters is in another, you need to first come up with "the rules". For example, is 123ram ok or is that an error? What about bramw123? Will the uid always be 3?

To write the code you want, set up a field or an array to hold the password and using reference modification compare the uid against the pwd following the rules.

Code your solution and post your code here if you have questions.
Back to top
View user's profile Send private message
raviprasath_kp
Warnings : 1

New User


Joined: 20 Feb 2005
Posts: 65
Location: chennai

PostPosted: Mon Jun 04, 2007 8:57 pm    Post subject: Re: Program abend when verify password
Reply with quote

its a interview question.
i am also thinking about using this

but SUPPORT USERID IS RAVI PASSWORD IS 1234RAVI

HOW WE WILL CHECK .....

can you suggest me some logic
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jun 04, 2007 9:05 pm    Post subject:
Reply with quote

Hello,

This, from the earlier reply, is how to begin.
Quote:
To write the code you want, set up a field or an array to hold the password and using reference modification compare the uid against the pwd following the rules.

Code your solution and post your code here if you have questions


As suggested then, create your w-s variables, and the routine to check for the "value" in the id, and post your code and any questions/proiblems that arise. I'd suggest you create pseudo code to work thru your process.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us