HP 3000 Manuals

EDIT ENTITY [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation


HP SYSTEM DICTIONARY XL SDMAIN

EDIT ENTITY 

Edits an entity's variable length attribute text.

Syntax 

     ED[IT] E[NTITY] entity-name 
           ;E[NTITY-]T[YPE] = entity-type-name 
           ;A[TTRIBUTE] = attribute-name 
           .

Parameters 

entity-name           Name of the entity whose variable length attribute
                      text is to be edited.

entity-type-name      Name of the type of the entity.

attribute-name        Name of the variable length attribute whose text is
                      to be edited.

Description 

You cannot use the EDIT ENTITY command if input is from a file or you are
executing in batch mode.

The EDIT command calls the EDIT/V subsystem, which performs the specified
editing.  (Refer to the EDIT/V Reference Manual (03000-90012) for details
regarding this subsystem.)

EDTXTxxx is the name of the temporary text file used as the interface
between the System Dictionary and EDIT/V.

To perform the editing tasks, you may use all but the following two
EDIT/V subsystem commands:  TEXT and KEEP. You cannot use the TEXT
command because EDTXTxxx is automatically used as the text file when
entering the EDIT command.  You may not use the KEEP command for the same
reason.

When exiting the EDIT/V subsystem, you are prompted with "PURGE OLD?" .
If you respond "Yes" or "Y" , an automatic KEEP is issued.  Otherwise,
the original text remains unchanged and the new text is not kept.

If you delete all lines, the variable length attribute is deleted from
the entity.

Open Mode:       Shared-update or exclusive-update

Scope:           DA scope or any scope with create capability and modify
                 access to the entity

Example 

The following example adds the line "The records in the file are fixed
length 80-byte records with 3 fields:  a customer ID, a part number, and
a quantity ordered." to the description text of entity orders.

     >EDIT ENTITY orders; 
     >>ENTITY-TYPE = file; 
     >>ATTRIBUTE = description. 
     HP32201A.7.16 EDIT/3000  WED, NOVEMBER 13, 1985, 4:34 PM
     (C) HEWLETT-PACKARD CO. 1984
     /L ALL 

          1     This file contains all of the information
          2     available for an order.
     /ADD 
          3     The records in the file are fixed length 
          4     80-byte records with 3 fields:  a customer ID,
          5     a part number, and a quantity ordered. 
          6     // 
     /L ALL 

          1     This file contains all of the information
          2     available for an order.
          3     The records in the file are fixed length
          4     80-byte records with 3 fields:  a customer ID,
          5     a part number, and a quantity ordered.
     /E"
     EDTXT0 ALREADY EXISTS - RESPOND YES TO PURGE OLD AND KEEP NEW
     PURGE OLD? Y 
     >


MPE/iX 5.0 Documentation