![]() |
Software > OpenVMS Systems > Ask the Wizard ![]() HP OpenVMS Systemsask the wizard |
![]() |
The Question is: I have a logical search list define logical disk1:[root.],disk2:[root.],disk3:[root.] Given a logical path, logical:[directory], I need to work out which physical disk the directory is on. Currently I use a loop and f$trnlnm to return each translation in turn and then check for the directory. Is there an easier way to do this using DCL? The Answer is : Your logical name definition is incorrect for a search list logical name. The use of the CONCEALED attribute is required for general operation: $ define/TRANSLATION=CONCEALED - logical disk1:[root.],disk2:[root.],disk3:[root.] From an application, you could use sys$open to ask RMS to fill in the various data structures. From DCL, consider the f$file_attributes lexical DVI itemcode. You will have to specify the directory as "logical:[000000]directory.DIR;1".
|