WRKENVVAR (Work with Environment Variables)

WRKENVVAR Command syntax diagram

 

Purpose

The Work with Environment Variables (WRKENVVAR) command can be used to show a list of the environment variables on the Work with Environment Variables display. From this display, you can select options to add, to change, to remove, to display the details of, or to print the environment variables.

Restriction: You must have *JOBCTL authority to use this command to add, change, or remove system-level environment variables.

 

Optional Parameters

LEVEL
Specifies the level of the environment variables to work with.

*JOB:Work with job-level environment variables.

*SYS:Work with system-level environment variables.

Examples for WRKENVVAR

Example 1: Work with Job-level Environment Variables

WRKENVVAR

This command allows you to display and work with all job-level environment variables.

Example 2: Work with System-level Environment Variables

WRKENVVAR   LEVEL(*SYS)

This command allows you to display and work with all system-level environment variables.

Error messages for WRKENVVAR

*ESCAPE Messages

None.