Renaming an element in Endevor

Document ID : KB000045678
Last Modified Date : 14/02/2018
Show Technical Document Details

 

Introduction: 

If the name of an element stored in Endevor is no longer relevant and you need to change it, there is no option on the menu that will allow this action.

 

Question: 

How to rename an Endevor element? 

 

Environment:  

All supported Endevor releases.

 

Answer: 

To change the name of an element/member there are 2 possibilities:

1. If the history of the element is not important, you can simply retrieve the element to an external dataset and add it back to Endevor with the new name.

2. If you don't want to lose the history of changes to that element, you can use the TRANSFER action, to transfer the element to the same Endevor location, but to a new name, using this sample SCL with the C1BM3000 utility:

TRANSFER ELEMENT 'OLDNAME'

FROM ENVIRONMENT 'ENV'

SYSTEM 'SYS'

SUBSYSTEM 'SUB'

TYPE 'TYP'

STAGE NUMBER 1

TO ENVIRONMENT 'ENV'

SYSTEM 'SYS'

SUBSYSTEM 'SUB'

TYPE 'TYP'

STAGE NUMBER 1

ELE NEWNAME

 

OPTION WIT HIS .

 

Additional Information:

https://docops.ca.com/ca-endevor-scm/17/en/scl-reference/process-element-actions-in-batch

https://docops.ca.com/ca-endevor-scm/17/en/scl-reference/process-element-actions-in-batch/transfer-statement/transfer-from-ca-endevor-scm-to-ca-endevor-scm-statement