[comp.os.vms] ALLOCATING a device from a user program

martin@rriwro.UUCP (Martin Hobson) (02/25/88)

One of our people here is writing some software which must ALLOCATE a
VMS device in a fashion similar to that of the VMS "ALLOCATE" command.
He is using the SYS$ALLOC system service to do this. A problem with this
approach is that the VMS device is automatically de-allocated at image
run-down, which is NOT what is desired. The only way we have been able
to address this problem is through the use of SYS$ALLOC in EXEC or
KERNEL modes. When the device is allocated in this way, however, the
standard VMS command to DEALLOCATE the device no longer functions
properly. Sigh...

So: Does anyone out there have a code fragment that performs this
function successfully without resorting to SYS$CMEXEC or SYS$CMKRNL ?
Any and all hints appreciated,

--
Martin Hobson                                  |  "HELP ! I'm trapped
Riverside Research - Computer Systems Center   |   inside execmail !"
(703)-247-3680                                 |
UUCP:  umd5.umd.edu!grebyn!rriwro!martin   ARPAnet: martin@umdhep.umd.edu

-- 
Martin Hobson                                  |  "HELP ! I'm trapped
Riverside Research - Computer Systems Center   |   inside execmail !"
(703)-247-3680                                 |
UUCP:  umd5.umd.edu!grebyn!rriwro!martin   ARPAnet: martin@umdhep.umd.edu