OCS windows can be used to enter product commands and monitor the results. Commands are entered on the command line and take effect when you press the Enter key.
You can access a list of all product commands from online help.
To access the list of commands from any OCS window
The OCS Overview panel appears.
The commands are listed. You can select any of the commands displayed to get more information about its use and syntax.
All commands are assigned an authority level within the range 0 to 255, zero being the lowest and 255 the highest authority level. The operands on some commands might require a higher authority than the base command itself.
You are allocated a command authority level in your user ID definition, corresponding to the scope of system control you require. Whenever you enter a command, your user ID authority level must be equal to or higher than the authority level of the command entered, otherwise the command is rejected.
This authority level checking also applies to commands executed from NCL processes invoked under your user ID.
All commands consist of a single command, which can be followed by one or more operands. Most commands can be abbreviated to the smallest number of characters consistent with their being distinguishable from any other product command. For example, the SHOW command can be abbreviated to SH.
Several commands can be entered simultaneously by concatenating them into the same OCS command line and separating each command with a semicolon (;). The concatenated commands are processed from left to right in the order they are entered.
Example: Concatenate Commands
The command string D LU10;D LU11 is treated by the system as two independent commands:
D LU10 D LU11
You can use the CLEAR command in this manner to clear the display area before the results of the next command are displayed. For example:
CLEAR;D BFRUSE
If you need to enter a semicolon as part of a command (that is, to use it as part of the command text), you must enter two semicolons instead of one.
To enter the command a;b, you must enter a;;b. The second semicolon is stripped from the text and the a;b string passed to the system as a single command. The remaining semicolon is not regarded as a command separator character.
Command separators are specified by using the PROFILE CMDSEP command.
You can prevent command concatenation by using the CMDSEP operand of the PROFILE command. When CMDSEP is set to NO, semicolons are not regarded as command separators and are always treated as part of the command string.
You can assign concatenated commands to function keys because the value of the CMDSEP operand is overridden by the value that the operand contained when the function key was defined.
If you enter a command regularly, you do not need to retype it every time you want to issue the command. There are facilities provided with OCS that let you reuse commands you have previously entered.
Each OCS window keeps a stack of the commands most recently entered from its command line. The stack does not include immediate function key entries. The number of entries kept in this stack can be changed by using the PROFILE CMDSTACK command.
You can use the command stack to retrieve previous commands entered and redisplay them on the command line so that they can be modified for re-entry.
Commands are retrieved from the stack using the CS+ or CS- commands. The default system function key series includes settings for the CS+ and CS- commands. These are F10 and F11 respectively. We recommend that you retain these.
When you execute a command, the command can be retained on the command line so that you can execute it again, or edit the command before executing it again. This facility lets you increment and enter command sequences with minimal effort.
This feature can be turned on or off using the PROFILE CMDKEEP command. When turned off, the command line is cleared as soon as the Enter key is pressed and a command must be retrieved from the command stack if it is required again. When turned on, the command you enter is retained on the command line so that you can enter it again.
To copy a command (or some other message) from an OCS window display area to the command line, put the cursor on the line you want to copy, and enter CS+ or CS- (or press F10 or F11).
The command or message appears in the command line.
EQUATE commands can be included in initialization procedures to do the following:
| Copyright © 2010 CA. All rights reserved. |
|