The String Action Type of String Find is used to find a specific string within another string.
Under Parameters, select the up arrow next to the String Action Type text box and choose String Find from the drop-down list. The program enters String Find in the String Action Type text box and enters the label String Find over the text box below.
Select the up arrow next to the String Find text box, and the String Find window displays.
Find What – contains information about the data for which the system will search. The first Find What text box specifies the type of data to be found. Choose from:
Memory Variable – the program enters Memory Variable into the first Find What text box. The Memory Variables window displays next to the Rule Command window. Double-click a memory variable, and it is entered automatically in the second Find What text box.
Record/Field – the program enters Record/Field into the first Find What text box. The Records/ Tables window displays next to the Rule Command window. Navigate down through a record to reveal the fields. Double-click a field, and it is entered automatically in the second Find What text box.
Constant – the program enters Constant into the first Find What text box, and the ECMap window displays. Enter a value in the text box on the ECMap window and select OK. The value is automatically entered in the second Find What text box.
In the string for which the system is searching, choose one of the following:
Ignore Trailing Space
Keep Trailing Space
Search – the drop-down list of places To Search includes the following choices:
Memory Variable – the program enters Memory Variable into the first To Search text box. The Memory Variables window displays next to the Rule Command window. Double-click a memory variable, and it is entered automatically in the second To Search text box.
Record/Field – the program enters Record/Field into the first To Search text box. The Records/ Tables window displays next to the Rule Command window. Navigate down through a record to reveal the fields. Double-click a field, and it is entered automatically in the second To Search text box.
Start Position – contains the name of the memory variable in which the value returned by the String Find command is stored. (The value returned is the position where the string you are searching for is found in the string being searched.) Choose Select and the Memory Variables window displays. Either select a memory variable or create a new one. Double-click your choice, and the program enters it in the Start Position text box.
Occurrence – used to specify which occurrence of the string should be found. (such as first, second, third, and so on.) The Occurrence drop-down list includes the following choices:
Memory Variable – the program enters Memory Variable into the first Occurrence text box. The Memory Variables window displays next to the Rule Command window. Double-click a memory variable, and it is entered automatically in the second Occurrence text box.
Record/Field – the program enters Record/Field into the first Occurrence text box. The Records/ Tables window displays next to the Rule Command window. Navigate down through a record to reveal the fields. Double-click a field, and it is entered automatically in the second Occurrence text box.
Constant – the program enters Constant into the first Occurrence text box, and the ECMap window displays. Enter a value in the text box on the ECMap window and select OK. The value is automatically entered in the second Occurrence text box.
Select OK on the String Find window to return to the Rule Command-New window.