The EDIT statement can be used to declare a command or an operand value as the “current” object. In order to modify the definition of a command with the MODIFY-CMD statement, you must first make sure that the command is made the “current” object.
EDIT |
OBJECT = *COMMAND(...) / *VALUE(...) *COMMAND(...) NAME = <structured-name 1..30> *VALUE(...) OPERAND-L1 = *ABOVE-CURRENT / <structured-name 1..20> ,VALUE-L1 = *CURRENT / <structured-name 1..30> ,ORIGIN = *CURRENT / *COMMAND(...) *COMMAND(...) NAME = <structured-name 1..30> |
OBJECT = *COMMAND (...)
A command becomes the current object.
NAME = <structured-name 1..30
Name of the command.
OBJECT=*VALUE(...)
An operand value becomes the current object.
OPERAND-L1 = *ABOVE-CURRENT / <structured-name 1..20>
Specifies the operand to which the operand value that is to be declared as the current object belongs. *ABOVE-CURRENT means that a value belonging to OPERAND-L1 is the current object. <structured-name 1..30> must be a globally unique operand name within the command.
VALUE-L1= *CURRENT / <structured-name 1..30>
Specifies the operand value that is to be declared as the current object. *CURRENT means that VALUE-L1 is the current object. If VALUE-1 is not the current object and is of the type *KEYWORD, then the particular value defined for it must be specified. Note that this particular value must always be specified without the prefixed asterisk. If the operand value is not of the type *KEYWORD, then the data type defined for it must be specified.
ORIGIN =
Selects the command in which the specified operand value becomes the current object.
ORIGIN = *CURRENT
The operand value belongs to a command which is itself the current object or which contains an operand or operand value that is the current object.
ORIGIN = *COMMAND(...)
The operand value belongs to the command specified under NAME.
NAME = <structured-name 1..30>
Name of the command.