Previous Topic: $NUMERIC FunctionNext Topic: $PACKAGESET Function


$OPSYSTEM Function

This function returns a string value containing the operating system the program is running under (MVS/XA or DOS).

This function has the following format:

$OPSYSTEM

Note: The compatibility with existing applications requires that these values do not change, so z/OS systems will return a value of MVS/XA and VSE systems will return DOS.