I am using Fortran. How can I test inside my Fortran program
if some drive (for example DKF200) is allocated or not
The Answer is:
You can call the SYS$GETDVI service and ask for the DVI$_DEVCHAR flags
longword. The DEV$V_ALL flag bit will be set if the device is
allocated. You may find using LIB$GETDVI an easier interface. For
more information, see the OpenVMS System Services Reference Manual
(for SYS$GETDVI) and the LIB$ Run-Time Library Routines Reference
Manual (for LIB$GETDVI).