EDIT RELATIONSHIP [ HP SYSTEM DICTIONARY XL SDMAIN ] MPE/iX 5.0 Documentation
HP SYSTEM DICTIONARY XL SDMAIN
EDIT RELATIONSHIP
Edits a relationship's variable length attribute text.
Syntax
ED[IT] R[ELATIONSHIP] entity-name1
,entity-name2
[,entity-name3]
[,entity-name4]
[,entity-name5]
[,entity-name6]
;R[ELATIONSHIP-]T[YPE] = entity-type-name1
,entity-type-name2
[,entity-type-name3]
[,entity-type-name4]
[,entity-type-name5]
[,entity-type-name6]
[;R[ELATIONSHIP-]C[LASS] = relation-class-name]
;A[TTRIBUTE] = attribute-name
.
Parameters
entity-name(N) Name of the entity involved in the relationship
whose variable length attribute text is to be
edited.
entity-type-name(N) Name of the entity type involved in the
relationship type.
relation-class-name Name of the relationship class.
attribute-name Name of the variable length attribute whose text is
to be edited.
Description
You cannot use the EDIT RELATIONSHIP 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 can 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 relationship.
Open Mode: Shared-update or exclusive-update
Scope: DA scope or any scope with create capability and modify
access to the relationship
Example
The following example adds the line "These orders are only from the
Midwestern Region." to the description text for the relationship,
Midwestern contains order.
>EDIT RELATIONSHIP Midwestern, order;
>>RELATIONSHIP-TYPE = region, file;
>>RELATIONSHIP-CLASS = contains;
>>ATTRIBUTE = description.
HP32201A.7.16 EDIT/3000 WED, NOVEMBER 13, 1984, 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 These orders are only from the Midwestern
4 Region.
5 //
/L ALL
1 This file contains all of the information
2 available for an order.
3 These orders are only from the Midwestern
4 Region.
/E
EDTXT0 ALREADY EXISTS - RESPOND YES TO PURGE OLD AND KEEP NEW
PURGE OLD? Y
>
MPE/iX 5.0 Documentation