The most straightforward solution to your problem is to re-write your DCL
procedure into an SDA Extension. This will allow you to do whatever you
need, and gives you access to the SDA features you need to safely poke
around in the system address space, without a single call to SYS$CMKRNL.
SDA Extensions are documented in the Alpha System Analysis Tools Manual,
chapter 6. This manual is available on the OpenVMS web site: start with
www.openvms.digital.com, click on "Documentation" and scan the list for
this manual. There is an example in SYS$EXAMPLES:MBX$SDA.C.
Please also see 3635, 3530, and 3365.