Initial Program – AS400

1005 pts.
Tags:
AS/400
Hi, how can we make use of the initial program in different ways. Is it depending upon the user with his authorities alone or can be changed for anyone?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

You can have as many different initial programs as you like – if necessary you can have a different one for each user. I wouldn’t recommend making one for each user because you will hten have to maintain all those programs. But you should very easily be able to make a few different initial programs for specific groups of users (e.g. accounts, sales, personnel, etc).

An initial program is simply a program that gets called whenever a user signs on to the system, the initial program is attached to the user profile. You can change someone’s initial program by using the WRKUSRPRF or CHGUSRPRF commands.

Be careful if you do this with your own profile, because if your initial program doesn’t work or doesn’t exist you may not be able to sign on anymore. You can try this by keeping one session signed on while you test.

Regards,

Martin Gilbert.
///////////////////////////////
You may want to have a datafile which contains the user and rules – lib list – restrictions, etc
Have your initial program find the user’s record(s) and process the rules that apply to this user.

Phil

We use the Initial Program especially in our test environments to set the appropriate library lists and output queues. Does the same for our end users in our production environments.

Hope this helps,
Bill Poulin

Discuss This Question: 1  Reply

 
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
  • harisudhan21
    Thanks all, very helpful! :)
    1,005 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