How to not require to add the env var everytime after signon?

50 pts.
Tags:
AS/400
Environment Variables
IFS
I've found that the environment variable (added by command ADDENVVAR) is not exist after signoff. How to include the environment variable in my session automatically during signon?

Software/Hardware used:
AS/400

Answer Wiki

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

An environment variable is either associated to a job or to the system. If it is set for the system, it will be set for every job. But if it’s set for an individual job, it will go away when the job goes away.

A user profile has an attribute named INLPGM() that names an “initial program” to be called automatically every time that user starts an interactive session. An initial program is intended to set environment attributes for a user.

Add the ADDENVVAR command to your initial program (or create your initial program). Your environment variable will then be set whenever you logon to a telnet session.

Tom

Discuss This Question:  

 
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

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