IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Program abend when verify password


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Mon Jun 04, 2007 7:49 pm
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
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

Moderator Emeritus


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

PostPosted: Mon Jun 04, 2007 9:05 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top