2 Replies Latest reply on Feb 1, 2015 12:38 PM by philmodjunk

    Multiple Search Values In Same

    kdefilip

      Title

      Multiple Search Values In Same

      Post

      Hi

      I have a solution which IMPORTS text files into FMP.  When the text file has been imported, I need to search to resulting text for two separate conditions, "ORA-" and "RMAN-" (see below script steps)

      Instead of making IF statements or CASE statements to identify which import I am dealing with, it would be much easier if I could make the "Find Request" search for both conditions. 

      Is there any way to do this, add another criteria? (see image below the script)

       

      If [ Case($$FileName="//Rman/NewFiles/SD_alert_log.txt";$$FileName="//Rman/NewFiles/ACP_alert_log.txt") ]
      Enter Find Mode [ Specified Find Requests: Find Records; Criteria: TextSearch::Text: “ORA-” ]
      [ Restore ]
      Perform Find [ ]
      Pause/Resume Script [ Indefinitely ]
      Else
      Enter Find Mode [ Specified Find Requests: Find Records; Criteria: TextSearch::Text: “RMAN-” ]
      [ Restore ]
      Perform Find [ ]
      End If

       

       

      FindCriteria.jpg