void pchange_struct_id_refs(
Pint orig_struct_id /* original structure identifier */ Pint result_struct_id /* result structure identifier */
)
This function changes both the identifier of a structure and the references which are made to it. This function therefore replaces a structure with another in the structure network.
The effect is the same as if CHANGE STRUCTURE REFERENCE and CHANGE STRUCTURE IDENTIFIER were called but without intermediate effect since the actions are carried out in only one operation.
If the old structure is open, it is closed, the action is executed and the old structure is reopened. The old structure exists but is empty. Element pointer is set to 0.
If the resulting structure result_struct_id is posted, it remains so with the same priority and the old structure orig_struct_id is unposted if it was posted.
On all the workstations where the old structure orig_struct_id is posted and where the resulting structure result_struct_id is unposted, result_struct_id is posted with the priority of the old structure; orig_struct_id is unposted.
open structure, copy all elements from structure, change structure reference, change structure identifier, inquire structure identifiers, inquire structure status