HP OpenVMS Systems

ask the wizard
Content starts here

Processing results of SEARCH?

» close window

The Question is:

 
When I am running the search command on a particualr file as part of a
command file, How do I get VMS to recognize the output from the search in an
IF statement?
 


The Answer is :

 
  Depending on the desired behaviour, you can use the $STATUS value
  returned from the SEARCH command completion (often with /WINDOW=0),
  or you can OPEN and process the output file (optionally) created by
  the SEARCH command (SEARCH/OUTPUT=filename), or you can potentially
  use the PIPE command and its various delimiters in conjunction with
  the SEARCH operation.
 

answer written or last revised on ( 13-AUG-1999 )

» close window