Previous Topic: SWAPSTAK()

Next Topic: TUG()

SYSVAL()

Use the SYSVAL() function to gain access to various system values.

Syntax

The SYSVAL() function has this syntax:

value = SYSVAL({SYSID|SYSNAME|SSID})

Arguments

The SYSVAL() function takes these arguments:

value

Returned value, if the function was successful. Otherwise, error text is returned.

SYSID

Requests the SMF system ID.

SYSNAME

Requests the GRS system name.

SSID

Requests the subsystem name being used by ISERVE.

Return Codes

The SYSVAL() function produces these return codes:

101

ARG 1 MISSING OR INVALID

Example

sysname = sysval('SYSNAME')      /* Obtain the GRS SYSNAME */