How can I remove obsolete Ideal systems?

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

Description

What are the steps required to safely delete obsolete Ideal systems.

Solution

An Ideal SYSTEM cannot be deleted until all its related objects (programs, panels, reports and modules) have been deleted and the SYSTEM has been marked to HIST.

Programs, panels and reports can be deleted only if they are in TEST or HIST status, so you have to MARK all the existing PROD programs (and panels and reports) to HIST then run a massive delete.

The best way is to run all the steps in batch mode with IDBATCH.

(WARNING: remember to use the SEL SYS sss command to correctly select the involved SYSTEM):

  • Step 1: a DIS IND PGM VER PROD can help you in creating the list of all the programs that must be marked to history;

  • Step 2: use the list from step 1 to create the IDBATCH statements to mark the programs from PROD to HIST status:

    MARK PGM pppppp VER PROD TO HIST

  • Step 3: a DIS IND PGM creates the list of all the programs to delete;

  • Step 4: use the list from step 3 to create the IDBATCH statements to delete the programs in HIST status:

    DEL PGM pppppp VER vvv

Repeat the same 4 steps above for reports and panels objects.

In a similar way, you have to delete all MODULES related to the system you want to delete, excepted that you do not have to mark them to history.

  • Remember that deleting from Ideal removes the VLS members too, but the opposite is not true: a VLS DELETE doesn't remove the Ideal (Datadictionary) entries.

  • Once all the panels, programs, reports and modules have been successfully deleted (command DIS IND PGM/RPT/PNL/MOD does not return any occurrence), then you must run a VLS LIBRARY on the related system VLS libraries to check if all the VLS members have been successfully deleted too.

    If some members still exist, you have to manually delete them via VLSUTIL DELETE function.

  • At this point you can MARK the SYSTEM itself to HIST and then DELETE it.