Encrypting your database
You can encrypt DL/I databases to help prevent non-IMS programs from reading.
You can encrypt DL/I segments using your own encryption routine, entered at the segment edit/compression exit. Before segments are written on the database, IMS passes control to your routine, which encrypts them. Then, each time they are retrieved, they are decrypted by your routine before presentation to the application program.
Do not change the key or the location of the key field in index databases or in root segments of HISAM data bases.