-
Display the content of the file to parse, as described in Specifying the File to Parse.
-
From the display area on the left side of the Text Parser
Editor, select the text from which name/value pairs will be
created.
A shortcut toolbar with several options appears. You can move the toolbar if needed by clicking
near its edge and dragging it.
-
From the list of icons at the center of the dialog box, click
.
Optimization Process Composer displays the Name/Value Delimiter dialog box with the
default delimiter selected. The names of the parameters that would be created
are highlighted in red. The corresponding values (for read operations) or text
to be replaced (for write operations) are highlighted in green.
-
Select the delimiter that results in the desired parameter names and values.
-
To configure the range of characters that will form the parameter value for
read operations, or that will be replaced during write operations, select either
of the following:
| Option | Description |
|---|
| Char-range |
Select all characters to the right of the delimiter, including tabs
and spaces. |
| Word |
Ignore leading tabs and spaces. |
-
To configure the behavior when a duplicate parameter name is encountered,
select either of the following:
| Option | Description |
|---|
| Use first |
Ignore duplicate parameter names. |
| Stop mapping |
Ignore all the text after the first duplicate parameter name is
encountered. |
-
When you are satisfied that the desired parameters will be created, click
Read or Write, depending on
the operation you selected when specifying the file to parse.
The parameter table displays the name, type, and for read operations
only, the value of the new parameters.
- Optional:
If desired, you can delete parameters or mappings using any of the following
methods:
- Select a parameter and click
from above the parameter list to remove the parameter along with its
mapping.
- Click anywhere within the highlighted text related to the mapping. From
the shortcut toolbar that appears, click
to
remove only the mapping.
- Select a parameter and click
from the icon list in the center of the dialog box to remove only the
mapping.
-
Click OK.
|