Reading syntax diagrams
To read a syntax diagram for entering a command, follow the path of the line. Read from left to right and from top to bottom.
- The >>--- symbol indicates the beginning of a syntax diagram.
- The ---> symbol at the end of a line indicates that the syntax diagram continues onto the next line.
- The >--- symbol at the beginning of a line indicates that a syntax diagram continues from the previous line.
- The --->< symbol indicates the end of a syntax diagram.
Command names
The command name can consist of a single action word, such as HALT, or it can consist of an action word and an object for the action, such as DEFINE DOMAIN. You can enter the command in any column of the input line.
Required parameters
When a parameter is on the same line as the command name, the parameter is required. When two or more parameter values are in a stack and one of them is on the line, you must specify one value.
Optional parameters
When a parameter is below the line, the parameter is optional. In this example, you can enter PARMNAME=A or nothing at all. Do not include any blanks immediately before or after the equal sign (=).
Defaults
Defaults are above the line. The system uses the default unless you override it. You can override the default by entering an option from the stack below the line.
Variables
Special characters
You must code these symbols exactly as they appear in the syntax diagram.
- *
- Asterisk
- :
- Colon
- ,
- Comma
- =
- Equal sign
- -
- Hyphen
- ( )
- Parentheses
- .
- Period
Repeating values
An arrow returning to the left means that the item can be repeated. A character within the arrow means that you must separate repeated items with that character.
Repeatable choices
Footnotes
Footnotes are enclosed in parentheses.
Entering parameters
The order in which you enter parameters can be important. The following example shows a portion of the command for defining a copy storage pool:
The first two parameters in this command (pool_name and device_class_name are required parameters. pool_name and device_class_name are also positional. That is, they must be entered in the order shown, immediately after the command name. The POOLTYPE parameter is a required keyword parameter. DESCRIPTION and RECLAIM, are optional keyword parameters. Keyword parameters are identified by an equal sign that specifies a specific value or a variable. Keyword parameters must follow any positional parameters in a command.
The following command entries, in which the keyword parameters are ordered differently, are both acceptable:
define stgpool mycopypool mydeviceclass pooltype=copy description=engineering
reclaim=50
define stgpool mycopypool mydeviceclass description=engineering pooltype=copy
reclaim=50The following example, in which one of the positional parameters follows a keyword parameter, is not acceptable:
define stgpool mycopypool pooltype=copy mydeviceclass description=engineering
reclaim=50Syntax fragments
Some diagrams, because of their length, must display parts of the syntax with fragments. The fragment name appears between vertical bars in the diagram.
The expanded fragment appears in the diagram after all other parameters or at the bottom of the diagram. A heading with the fragment name identifies the expanded fragment. Commands appearing directly on the line are required.
