We help IT Professionals succeed at work.

VMS Command: Find

JohnLucania
JohnLucania asked
on
Medium Priority
696 Views
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.  
Comment
Watch Question

Sam PanwarSr. Server Administrator

Commented:
find . -name '*.c' -print

use

  dir [...]*.c

See HELP DIR for various options to the DIRECTORY command.

http://groups.google.co.in/group/comp.os.vms/browse_thread/thread/c99fda59200b5d2/6deb1c97c59a3f7e?lnk=st&q=find+command+in+vms&rnum=1&hl=en#6deb1c97c59a3f7e
Sam PanwarSr. Server Administrator
Commented:
http://www.openvms.digital.com/freeware/DFU026/

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

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
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:[userfiles.census.data]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:[userfiles.census.data]

and list the file with

type ministry_census.org
Commented:
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

Commented:
great!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.