os_id

Returns the operating system id.

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X X X X

Syntax

int os_id()

Description

This function returns the operating system id. The vlaues are defined as follows in trim.h:
#define   os_unix       0   /* All Unix derivatives                   */
#define   os_windows    1   /* Windows                                */
#define   os_mvs        2   /* MVS (OS/390)                           */
#define   os_vms        3   /* OpenVMS                                */

Example

The following prints out the computer's operating system.
{
prompt ( decode(os_id(), os_unix, "Unix", 
                         os_windows, "Windows",
                         os_mvs, "MVS",
                         os_vms, "VMS",
                         "undefined"));
}