How do I quickly and easily delete an obsolete system from Endevor
search cancel

How do I quickly and easily delete an obsolete system from Endevor

book

Article ID: 12682

calendar_today

Updated On:

Products

Endevor Endevor Natural Integration Endevor - ECLIPSE Plugin Endevor - Enterprise Workbench

Issue/Introduction



I am currently trying to clean up a obsolete Endevor system.   Is there a batch

job that can be run to make this process easier?

Environment

Release:
Component: ENDBAS

Resolution

Deleting a system requires that the deletion be done in the following order:

elements, types (both stages), subsystem, system.

The following is the jcl/scl that can be use to clean up a Endevor system:

 

//ENBE1000 EXEC PGM=NDVRC1,PARM=ENBE1000,DYNAMNBR=1500

//STEPLIB DD DISP=SHR,DSN=prefix.qual.CSIQAUTU

//             DD DISP=SHR,DSN=prefix.qual.CSIQAUTH

//CONLIB  DD DISP=SHR,DSN=prefix.qual.CSIQLOAD

//SYSPRINT  DD  SYSOUT=*

//SYSOUT  DD  SYSOUT=*

//C1MSGS1 DD SYSOUT=*

//ENESCLIN DD  *

DELETE ELEMENT  *

FROM ENVIRONMENT environment-name

         SYSTEM system-name

         SUBSYSTEM subsystem name

         TYPE type-name

         STAGE NUMBER 1.

DELETE ELEMENT  *

FROM ENVIRONMENT environment-name

         SYSTEM system-name

         SUBSYSTEM subsystem name

         TYPE type-name

         STAGE NUMBER 2.

DELETE TYPE type-name 

FROM ENVIRONEMENT environment-name

         SYSTEM system-name

         STAGE NUMBER 1.

DELETE TYPE type-name 

FROM ENVIRONEMENT environment-name

         SYSTEM system-name

         STAGE NUMBER 2.

DELETE SUBSYSTEM subsystem-name

FROM ENVIRONMENT environment-name

         SYSTEM system-name.

DELETE SYSTEM system-name

FROM ENVIRONMENT environment-name.

 

Each of the different actions can be defined as seperate steps allowing 

you to double check to make sure everything was deleted.

 

 

 

Additional Information

The full documentation for this topic see:  

Manage Environments in Batch (Batch Admin)

https://docops.ca.com/ca-endevor-SCM/18/en/scl-reference/manage-environments-in-batch-batch-admin