VMS Command: Find

Posted on 2006-03-27
Last Modified: 2008-03-03
What is the command for finding a file (ministry_census.prg) in VMS; (where you don't know which directory the file is under)?  and then, I need to view (cat in AIX) the file.  
Question by:JohnLucania
    LVL 18

    Expert Comment

    by:Sam Panwar
    find . -name '*.c' -print


      dir [...]*.c

    See HELP DIR for various options to the DIRECTORY command.
    LVL 18

    Assisted Solution

    by:Sam Panwar

    (this tool has quite a bit more to offer, than simply
     speedy searches ..)
    LVL 2

    Accepted Solution

    to find the file do a root dir search like this

    dir dka0:[000000...]ministry_census.prg

    (assuming your disk is dka0:, it can be as well dka100:, dka200 or some other name. You can chech disk name using:

    show device d

    once you have the name and path, e.g.   dka0:[]ministry_census.prg (equivalence in windows world would be C:\userfiles\census\data\ministry_census.prg)

    you can go to the directory using:

    set default dka0:[]

    and list the file with


    Assisted Solution

    catoaguilar is correct.

    An additional note: if your machine has only one drive, the system drive, your directory command could be:

    dir sys$sysdevice:[000000...]ministry_census.prg

    Author Comment


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, ( because one time I did this and I essentially had a bricked …
    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now