IBM i runs more than RPG and Db2 now. Node. Python. Open source ported through PASE. Java. All of it reads environment variables to decide how to behave, and most admins have never looked at what those variables hold.
List them in one query:
SELECT ENVIRONMENT_VARIABLE_NAME,
ENVIRONMENT_VARIABLE_VALUE
FROM QSYS2.ENVIRONMENT_VARIABLE_INFO
ORDER BY ENVIRONMENT_VARIABLE_NAME;
This returns the system-level environment variables and their current values.
Why it matters:
- PATH and library settings decide which version of a tool runs
- Locale and CCSID variables control how open source handles your data
- A stale value set years ago for one project still applies to everything today
If you support any open source or PASE workload on #IBMi, these variables are part of your configuration whether you manage them or not. Reading them is the first step to managing them.
Run it this week; I bet you will find at least one setting nobody remembers adding.
#IBMi
Originally posted on LinkedIn. Join the conversation there.
Leave a Reply