To set environment variables from the command line

Before starting an enterprise server region from the command line, you can set environment variables to apply specifically to that enterprise server region.

  1. Start an Visual COBOL command prompt. See To start an Visual COBOL command prompt for details
  2. Use the following syntax:
    set env-var=value(s)
    Where env-var is any Enterprise Server environment variable, and value(s) represents valid parameters for the environment variable. See Environment Variables by Groups or Environment Variables in Alphabetical Order for details on each environment variable.

    For example, to set the name for the enterprise server region:

    set ES_SERVER=MYSERVER