Guru: Environment Variables – Global Variables Wearing Hiking Boots
November 2, 2026 Gregory Simmons
Sometimes a program knows one tiny piece of information that another program, several calls farther down the stack, needs to know.
The obvious solution is to add another parameter. But sometimes that requires that new parameter added to one or more programs in the call stack. Before long, we’re passing a mushroom basket through half the forest even though most of the programs along the way have no interest in what’s inside it.
There is another option that has been available on IBM i for a very long time: environment variables. IBM i supports both job-level and system-level environment variables. …
Read more