ENV - Get and Set system environment variable (Reports & Settings Report Generator function)
From Catalyst
(Redirected from REF:rprgfenv)
Syntax
$ENV{var, value}
Description
Retrieve and set system environment variables.
Special
Special one character environment variables exist for accessing date and time details.
- D
- Day of the month, 2 digits with leading zeros. (01 to 31)
- M
- Month, 2 digits with leading zeros. (01 to 12)
- Y
- Year, 4 digits.
- y
- Year, 2 digits.
- H
- 24-hour format of an hour with leading zeros. (00 to 23)
- G
- 12-hour format of an hour with leading zeros. (01 to 12)
- I
- Minutes with leading zeros. (00 to 59)
- S
- Seconds with leading zeros. (00 to 59)
|
Parameters
- var
- A text parameter that can not be omitted.
- System environment variable name.
- value
- A text parameter that can be omitted.
- The value to set the environment variable to.
Returns
A text value. The system environment variable contents or spaces if the variable is being set.