Parse text using keyword, command, and positional type In discovery patterns, you can parse text into a variable for keyword, command, and positional type parsing strategies. Before you begin Basic knowledge of programming is desirable. Role required: pd_admin About this task The following strategies are generally used to extract a value from a variable. You can use them to define only a single value for extraction. To extract multiple strings, define multiple steps. After keyword Command-line Java style Command-line Unix style Position from start Position from end Procedure Select one of the parsing operations from the Operation list in one of the following locations: the Identification Sections or Connectivity Sections for Service Mapping the Step window for Discovery Select one of the keyword, command, or positional types from the Define Parsing list. Click Retrieve. The content of the file is displayed in the Output pane. Define the string to extract as a variable from within Debug mode: Select the string in the Output box. All settings are automatically entered in the variable fields. Provide a unique and meaningful name for the variable and click OK. The variable is added to the Variables table. Define the string to extract as a variable outside of Debug mode: Specify the value and delimiter for the Keyword, Position from Start, or Position from End. To add more strings and variables, click the plus icon. To end the discovery process if no results are found, select the If not found check box. Example You can use the Command Line Java Style parsing strategy to extract the path of the installation directory of the WebSphere Server.