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 The same REXX program doesnt work for... jackzhang75 CLIST & REXX 5 Wed Dec 06, 2017 2:51 am
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 8 Wed Nov 15, 2017 4:27 pm
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm

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