Previous Topic: OPSVALUE()Next Topic: P2D()


OSCMD()

This function issues the specified text as a console operator command.

Syntax

result = OSCMD(text,[console])

Parameters

result

Null string (or error text).

text

Text to be issued as a console operator command.

console

Console where the command is executed.

Default: The command is routed through subsystem console (if available) for ISERVE. Otherwise, the command is issued through the master console.

Usage Note

Returned information only indicates that the system for processing has accepted the command (processing can consist of determining that the command is invalid). No information is returned indicating the success or failure of the passed command.

Return Codes

101 - 102

ARG n MISSING OR INVALID

Example

x = oscmd('d a,l',0)   /* The command is issued using console 0.*/