Changing Data Item Attributes [ DBChange Plus User's Guide ] MPE/iX 5.0 Documentation
DBChange Plus User's Guide
Changing Data Item Attributes
To change the subitem count, the type, and the length of a data item, use
the CHANGE ATTRIBUTES command. CHANGE ATTRIBUTES and CHANGE ITEM are
similar in that they both change data item attributes. However, CHANGE
ITEM also changes the order of a data item in the data item list and the
data item security. If you only want to change data item attributes, use
the CHANGE ATTRIBUTES command. If you want to change the data item
attributes in conjunction with data item sequence and/or security
changes, use the CHANGE ITEM command.
In this section, the attributes of the data item STOCK# are changed in
the ORDERS database. Before changing the data item attributes, the
REVIEW ITEMS output looks like this:
REVIEW ITEMS:
Itm No. Item Name Attrib Security
------------------------------------------
17 STOCK# U8 (11,12,14,18/)
NOTE For information about data item type conversions supported by
DBChange Plus, refer to Table 4-2 .
In the example below, the data item STOCK# is changed to type X with a
length of 10. The DBCPLUS program displays a message confirming that the
attribute changes are accepted.
>change attributes stock# x 10
Change of item attributes accepted.
>
Refer to "CHANGE ATTRIBUTES" in chapter 10, "DBChange Plus Commands," for
a detailed description of the command syntax and parameters.
If you want to verify that the data item attributes are changed, use the
REVIEW ITEMS command. In the following example, STOCK# is the name of
the data item to be reviewed. You can see that the data item STOCK# is
now defined as data type X with a length of 10.
>review items stock#
REVIEW ITEMS:
Itm No. Item Name Attrib Security
------------------------------------------
17 STOCK# X10 (11,12,14,18/)
MPE/iX 5.0 Documentation