Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts PDSFAST VERIFY - What does it really ... shetttigarvivek JCL & VSAM 1 Tue Nov 29, 2016 9:21 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us