Setting environment variables on z/OS

For the products that are installed through z/OS Cloud Broker and z/OS Package Manager on z/OS, you set up the z/OS environment to use these products through environment variables.

During installation, an .env sample file is created in the software installation directory (by default, under /usr/lpp/IBM/zpm in Unix System Services filesystem. The .env files are described in the installation instructions for each product (see Installing the products).

You can also combine the .env files to use a combination of IBM Z and Cloud Modernization Stack software.

For example, here is the .env file for C/C++ for Open Enterprise Languages on z/OS:

export PATH=/usr/lpp/IBM/zpm/opencpp/1.0.0.0/bin:$PATH

This article combines that file with the environment files for other products into a shell script.