NET/MASTER Network Control Language (NCL) Reference Manual

OCS
Verbs
3–138 106126 Tandem Computers Incorporated
OCS The OCS verb displays an Operator Control Services (OCS) window within the
primary processing environment and suspends the NCL process, allowing the user to
enter NonStop NET/MASTER MS commands. To resume the original NCL process,
exit from the OCS window by using the function key F3 or by entering the NonStop
NET/MASTER MS command X. Processing then resumes at the statement in the
procedure that follows the OCS verb.
If more than one NCL process executing in the same window, or executing in the same
primary processing environment, tries to execute the OCS verb, a run-time error
results.
OCS
Considerations
The OCS verb is an advanced NCL feature. Programmers are advised not to
include this verb in any NCL procedure that is started from an already existing
OCS window because the procedure will get a run-time error. At most, NCL
supports only one instance of OCS in any window.
The OCS verb cannot be executed by a virtual user, such as Background Monitor
(BMON), Background System Process (BSYS), or Background Logger (BLOG),
because a physical terminal is required.
For more information on primary processing environments, refer to the NonStop
NET/MASTER NCL Programmer's Guide.
See also PAUSE, which allows you to suspend processing and waits for you to
type some data at the command input line of an OCS window.
Example
In the following example, processing is resumed at the next statement in the
procedure, the SAY core statement, after the operator exits from the OCS window by
using the OCS verb:
OCS
SAY " EXIT FROM OCS NOW "