Verifying user, password and open menu of RPGs

346265 pts.
Tags:
AS/400
RPG
I currently have a login module in my AS/400 application where the user name and password are verified and only if the password matches the user, they are given access to the Menu screen (with contains RPG programs).

I'm trying to find out if it's possible to achieve that when the user is verified, the logged in user name must appear in every screen or rather every rpg screen called. This is what I have so far:
      USER PF


A          R USRREC                
A            USER          10A     
A            PWD           10A     
A            USRTYP         2A     
A          K USRTYP  
Can someone help me out?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • CharlieBrowne
    You need to add a field to the DSPF for the USRPRF. Then in your RPG program you populate it.
    41,380 pointsBadges:
    report
  • philpl1jb

    1. Is your application USER the same ID that is used to log onto the system?

    2. Why would you have an application login when the system already has a login and password and you know the user ID. I would take the user id which you can get from the program file structure and confirm that it's valid in the application user file. 

    49,950 pointsBadges:
    report
  • TomLiotta
    It's not clear what the actual question is. Do you want to know how to have a user ID defined for an application screen? (Is it the same as the system user ID, or is the ID only defined as a data element in your application?) Do you need to know how to verify a password for a user ID? (Is it the password for a system user ID or an application ID?) Please describe the specific problem. -- Tom
    125,585 pointsBadges:
    report
  • WoodEngineer
    Recommend not creating your own file which contains user passwords.  This could easily create more problems than it solves.  Plus, there is the security issue unless passwords will be encrypted in your file.
    6,680 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following