HP 3000 Manuals

RENAME ITEM [ DBChange Plus User's Guide ] MPE/iX 5.0 Documentation


DBChange Plus User's Guide

RENAME ITEM 

Renames a data item.

Syntax 

     REN[AME] ITEM OldItemName NewItemName 

Parameters 

OldItemName         is the name of the data item to be renamed.

NewItemName         is the new name of the data item.  Each data item
                    within a database must have a unique name.  This name
                    must be from 1 to 16 characters, the first of which
                    must be alphabetic.  Characters after the first must
                    be chosen from the following set:  letters A - Z,
                    digits 0 - 9, and + * / ?  '  # % & @ inclusive.
                    Data item names are upshifted.

Description 

Use this command to rename a data item.  The data item is renamed
wherever it appears in the schema, including the data set field lists.

Example 

     >rename item lastshipdate shipdate 

This example gives the data item LASTSHIPDATE the new name SHIPDATE.

Before renaming the data item, the ITEMS and SETS parts of the schema
looks like this:

     ITEMS:
       ACCOUNT       , J2(0,11,12,13,14,18/);
       BINNUM        , Z2(/13);

     :

       LASTSHIPDATE  , X6(12/);                           <---- item to be renamed 
       ONHANDQTY     , J2(14/12);

     :

                 UNIT-COST                             ,
                 LASTSHIPDATE ( DATE-MASTER           ),  <---- field to be renamed 
                 BINNUM                                ;
       CAPACITY: 450(15);

     END.

After renaming the data item, the ITEMS and SETS parts of the schema look
like this:

     ITEMS:
       ACCOUNT       , J2(0,11,12,13,14,18/);
       BINNUM        , Z2(/13);

     :

       SHIPDATE      , X6(12/);                           <---- item renamed 

     :

                  SHIPDATE     ( DATE-MASTER          ),  <---- field renamed 
                  BINNUM                               ;
       CAPACITY:  450(15);

     END.



MPE/iX 5.0 Documentation