Previous Topic: ENVAR Statement—Pass Environment VariablesNext Topic: EVENT Statement—Specify the SAP Event to Monitor or Trigger


ENVAR Statement—Pass Environment Variables for a Micro Focus Job

The ENVAR statement passes environment variables to a command or script for a Micro Focus job. Several ENVAR statements can be specified on a job level.

Supported Job Type

This statement is optional for the following job type:

Syntax

This statement has the following format:

ENVAR name=value
name=value

Specifies the name of the environment variable and the value that is assigned to the variable.

Note: If the resulting value requires spaces, such as a date, enclose the value in double quotes in the ENVAR statement.

The mandatory operand name=value cannot be longer than 4078 characters. The operand can contain any characters. If the value has delimiters, enclose it in double quotes. ENVAR is a job level statement, meaning it can only be specified within a job definition.

Example: Source Windows Environment Variables from a File

This example uses the A and C environment variables to pass values B and "X Y".

AGENT MFAGENT ROUTING
JCLCONTENT C:\JCLDEMO\ESJCL\FIVESTEPS.jcl
SERVERNAME JCLDEMO
ENVAR A=B
ENVAR C=”X Y”
MFUSER TomK
VERSION JES3