HP 3000 Manuals

MODIFY UPDATE [ HP Transact Reference Manual ] MPE/iX 5.0 Documentation


HP Transact Reference Manual

MODIFY UPDATE 

Modifies the specified item in the update register.

Syntax 

{MODIFY UPDATE} item_name [(subscript)] [new_value]
{MU           }
Parameters 

item_name        The name of the item to modify in the UPDATE register.

subscript        A numeric value used to select a particular element in a
                 single dimensional array.  If this parameter is omitted
                 and the item being modified is an array, only the first
                 element in the array is modified.  If this parameter is
                 specified and the item is not an array, a warning
                 message is displayed and the item is not modified.

new_value        The value to be assigned to the specified item in the
                 update register.  If you do not specify a new value for
                 the update register item, the current value is
                 displayed.  Then, you can either enter the new value or
                 press Return to leave the update register item
                 unchanged.

Discussion 

This command allows you to modify items in the update register
selectively.  The new value is converted to the data type of the item
before it is placed in the update register.  If the value does not fit
into the storage length of the item, it is truncated and a warning
message is displayed.  This truncation can cause erroneous results during
the program execution, so before modifying an item, be aware of the
storage length of the item you are modifying.  You cannot use this
command to add or delete items from the update register.

Example 

The following example shows the modification of the update register.

     TRANDEBUG> MODIFY UPDATE item1 123 
     TRANDEBUG> DISPLAY UPDATE 

      UPDATE REGISTER:
     ITEM1      EQ  :   123
     ITEM2      GT  :   ABC

     TRANDEBUG> MODIFY UPDATE item2 

     ITEM2          : <ABC>     := <DEF> 

     TRANDEBUG> DISPLAY UPDATE 

      UPDATE REGISTER:
     ITEM1      EQ  :   123
     ITEM2      GT  :   DEF



MPE/iX 5.0 Documentation