Consultor Eletrônico



Kbase 18899: How To Find A File Under VAX VMS
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/16/2008
Status: Unverified

GOAL:

How to locate a file under VAX VMS.

FACT(s) (Environment):

OpenVMS

FIX:

Step by step details:
1) Determine what disks are available on the system:

SHOW DEVICE D

2) Set privileges to allow examination of every directory on each disk:

SET PROCESS/PRIV=BYPASS or SET PROCESS/PRIV=READALL

The difference here is that BYPASS will allow modification of any file, whereas READALL only allows reads to the files.

3) Find the desired files:

DIR DUAn:[000000...]*.CFG

File specifiers may use * (matches any number of characters) and/or % (matches one character).

An alternative to this, if a number of files need to be located, is to send the output of the DIR command to a file and then scan the file using a text editor, or use the VMS SEARCH command:

DIR/OUTPUT=myfile.txt DUA0:[000000...]*PRO*.EXE
EDIT/EDT myfile.txt
EDIT/TPU myfile.txt (if you don't have EDT)

SEARCH myfile.txt PROSRV,PROGRES

The SEARCH program is less sophisticated than UNIX grep, but it is useful for basic searches.