Logo
Back

◆ New Supervisor DEFINE Program Type

8th March 2006

A new OPAL program type called COMMAND has been implemented for SUPERVISOR. COMMAND is a variant of the DEFINE command and has the same syntactical implementation.

A COMMAND program allows the OPAL programmer to write ODTSEQUENCES under a program name that can be executed from a SUPERVISOR window without prefixing by 'TT DO'. One advantage of this is that a COMMAND program can be used to replace a Unisys operator command. For example:

DEFINE + COMMAND C:
ÊÊ SHOW(KEYIN("C FULL"))
The above simple COMMAND program allows the the usual Unisys 'C' command to be superseded by the SUPERVISOR equivalent; when C is entered from a SUPERVISOR window, *all* system COMPLETED entries will be shown since a 'C FULL' is processed instead. Note that any 17 character identifier can be assigned to a COMMAND program not just Unisys commands allowing specialised sequences to be assigned a shortcut. A smarter Y command

Mix number related commands e.g. 1234Y may also be replaced by a COMMAND equivalent. So:

DEFINE + COMMAND Y(MX):
Ê $Y:= KEYIN(#(MIXNO,"Y"));
Ê $Y:= &#(/,KEYIN(#(MIXNO,"TI")));
Ê $Y:= &#(/,KEYIN(#(MIXNO,"FI")));
Ê SHOW($Y);

With Y defined as a COMMAND program, any <mixno>Y command issued from a SUPERVISOR window would give a more detailed status response including time and file information.

Once a COMMAND program has been compiled, it will immediately be available for use from any SUPERVISOR window. COMMAND programs can also be executed by the COM command e.g.

TT COM C

Extensions to the DEFINE, ENTER and SAVE commands have been applied to accommodate the new program type. For example:

SAVE COM T= AS ZZ
ENTER COMMAND FROM ZZ

Where a MCP command has been replaced by a Supervisor equivalent, the original command may still be invoked by using the ODT prefix e.g.

ODT NET

Some MCP command replacements

A small set of example COMMANDs are available for download and include “enhanced” MCP commands such as C, MSG, DBS, Y and NET.Ê The C and MSG scripts both allow wild-card filters, similar to AA NAME=, to target messages or completed entries with specific text in the entry. You must be using SUPERVISOR release 510.40 (September 2005) or later. The download is available here:

OPALCOM.ZIP