Setting environment variables

Use the -v option to set environment variables.

Syntax

–v variable-name=value…
variable-name=value…
Specifies the list of variables and their values that are used to modify the build environment. Variable names are limited to 30 characters.

Platforms

z/OS® MVS, z/OS® UNIX® System Services

Build environment variables are used differently in z/OS® MVS and z/OS® UNIX® System Services:
  • In z/OS® MVS, the –v option works in conjunction with user-defined variables on a DD statement.
  • In z/OS® UNIX® System Services, the –v option changes or sets an environment variable. It is the equivalent of using the C language command putenv().