Command reference / CL

RTVSYSVAL

Retrieve System Value

Used in a CL program to retrieve the value of a system value so it can be used in the program. The value is copied into the specified CL variable.

The source help entry is marked incomplete.

Allowed environments: *BPGM, *IPGM, *BREXX, *IREXX. Use within a CL program. Positional parameters: 2.

Restrictions

Parameters

SYSVAL System value

Names the system value whose value is retrieved and returned for use in the program. This is a required parameter.

Type
*CHAR
Required
Yes
Length
10
Case
Uppercase

RTNVAR CL variable for returned value

Type
*CHAR
Required
Yes
Length
2000
Case
Uppercase
Returns
CL variable

IBM command documentation

Generated from os/cl/catalog/RTVSYSVAL.json and os/cl/help/RTVSYSVAL.json.