CALL PCSTID (OLDSID, NEWSID)
This function changes the number referring to a structure in the centralized structure store (CSS). It does not change the references existing between the other structures and the old structure. In fact, the effect of CHANGE STRUCTURE IDENTIFIER depends on the old structure state and on the resulting structure state when the function is called.
For the old structure:
If no reference is made to OLDSID in the CSS, then CHANGE STRUCTURE IDENTIFIER destroys NEWSID.
If other structures in the CSS refer to OLDSID , then OLDSID continues to exist but as an empty structure.
If OLDSID is the open structure, then OLDSID continues to exist but is emptied and element pointer is set to zero.
If OLDSID is posted, it remains posted but as an empty structure.
For the resulting structure:
If NEWSID does not exist, it is then created and contains all the elements of OLDSID .
If OLDSID does not exist, then NEWSID is an empty structure.
If NEWSID exists, all its elements are replaced by those of OLDSID . None of NEWSID references is modified.
If NEWSID is the open structure, NEWSID is closed. All its elements are replaced by those of OLDSID . NEWSID is again opened and element pointer points to the same element as before.
If NEWSID is posted, it remains posted, but the visual aspect of the workstation is modified according to the workstation update state.
open structure, copy all elements from structure, change structure reference, change structure identifier and references, inquire structure identifiers, inquire structure status