Previous Topic: OPSVALUE()

Next Topic: P2D()

OSCMD()

Use the OSCMD() function to issue the specified text as a console operator command.

Syntax

The OSCMD() function has this syntax:

result = OSCMD(text,[console])

Arguments

The OSCMD() function takes these arguments:

result

Null string (or error text).

text

Text to be issued as a console operator command.

console

Console where the command is to be executed.

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

Usage Note

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

Return Codes

The OSCMD() function produces these return codes:

101 - 102

ARG n MISSING OR INVALID

Example

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