Working with environment variables

PASE for i environment variables are independent of ILE environment variables. Setting a variable in one environment has no effect on the other environment.

However, you can copy variables from ILE into PASE for i, depending on the method you use to run your PASE for i program.

Environment variables in an interactive PASE for i session

ILE environment variables are passed to PASE for i only when it is started with QP2SHELL() and QP2TERM(). Use the Work with Environment Variables (WRKENVVAR) command to change, add, or delete environment variables as needed before starting PASE for i.

Environment variables in a called PASE for i session

When PASE for i is started from a program call (with the Qp2RunPase() API), you have complete control over the environment variables. You can pass environment variables that bear no relationship to the ILE environment from which you called the PASE for i program.

Copying environment variables to ILE before running a CL command

You can copy PASE for i environment variables to the ILE environment before you run a CL command using an option on the systemCL() runtime function. This is also the default behavior of the PASE for i system utility.