SYSTEM and REAL.SYSTEM Functions

SYSTEM function

The operation of the SYSTEM function depends on the MultiValue mode, selected with the $OPTIONS statement. The available elements are listed in the sections below; for elements that are not available or are not listed, and for all elements in unlisted modes, a runtime error occurs and the function returns 0.

Note

When in one of the MultiValue modes, the ASSIGN and SYSTEM statements can only change the values of the settable elements that are available in that mode.

REAL.SYSTEM function

The REAL.SYSTEM function always behaves like the SYSTEM function with Reality mode selected, regardless of the actual MultiValue mode selected. This function is used within Reality internal programs but is available for use within user programs that want to use all features available in the Reality environment regardless of the MultiValue mode selected.

For example, REAL.SYSTEM(21) will always return the type of visual characteristics supported by the current TERMTYPE (for Reality), but SYSTEM(21) will return either the number of the port on which the current process is running (for mvEnterprise), the user's system privilege level (for mvBase), the current date (for D3), or False (for Universe), depending on the MultiValue mode.

Operation

Select the emulation you require from the drop down list below: