Initializing help system before first use

# getsysinfo

Purpose
Get information about the running operating system.
Synopsis
`function getsysinfo:string`
`function getsysinfo(what:integer):string`
`function getsysinfo(I:Mosel):string`
`function getsysinfo(I:Mosel,what:integer):string`
Arguments

what | What information to collect:
SYS_NAME | Name of the operating system
SYS_VER | Version name of the operating system
SYS_REL | Release number of the operating system
SYS_PROC | Processor type
SYS_ARCH | Processor architecture (32 or 64 bit)
SYS_NODE | Computer name
SYS_RAM | Total amount of system memory (in megabytes)
SYS_ENDIAN | Endianness ( "little-endian" or "big-endian")
SYS_PID | Process ID of the instance
I | A Mosel instance

Return value
A text string reporting the requested information.
Example
The following prints the computer name and its operating system version:

    writeln("Node ",getsysinfo(SYS_NODE),
            " is running ",getsysinfo(SYS_NAME+SYS_REL))

Further information
1. Several information items can be obtained in a single call by summing up the option codes. In such a case, the resulting string consists in the different items separated by commas.
2. When the function is used without the what parameter, all information items (except SYS_PID) are returned.
3. This function may also be used with a Mosel instance as its first parameter. In this case the returned information relates to the system running this instance instead of the current system.
Related topics
mmjobs
Module
mmsystem
Parent Topic Procedures and functions

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.