-- List some subset of your command code
select dot.object_type_name,
nc.command_seq,
nc.command_name,
--nc.enabled_flag,
--nc.condition,
ncs.step_seq,
ncs.command
from KDLV_OBJECT_TYPES dot,
KNTA_COMMANDS nc,
KNTA_COMMAND_STEPS ncs
where dot.enabled_flag = 'Y'
and dot.object_type_id = nc.parent_id
and nc.command_id = ncs.command_id
-- Locate command steps with similar names
-- and nc.command_name like '%Check%'
-- Locate command steps which contain a specific directive
-- For example:
-- and ncs.command like '%.env%' -- steps with environment file loads
-- and ncs.command like '%mv%' -- Steps with 'mv' commands
-- and ncs.command like 'sc_%' -- Steps with special command code
-- Locate steps controlled by a specific condition
-- and nc.condition like '%PROD%'
-- Exclude retired objects with curly bracketed names
-- and dot.object_type_name not like '%{%'
order by dot.object_type_name
|