Use the String Action Type of String Move to move a field, variable, or record to a destination field, variable or record, based on start position and length. (This rule command can be used to copy one record to another.)
Under Parameters, select the up arrow next to the String Action Type text box and choose String Move from the drop-down list. The program enters String Move in the String Action Type text box and enters the label String Move over the text box below.
Select the up arrow next to the String Move text box, and the String Move window displays.
The Source section contains information about the location and size of the data that is to be moved.
The first Source text box specifies the type of data to be moved. Choose from:
Memory Variable – the program enters Memory Variable into the first Source text box. The Memory Variables window displays next to the Rule Command window. Drag a memory variable and drop it on the second Source text box.
Record/Field – the program enters Record/Field into the first Source text box. The Records/Tables window displays next to the Rule Command window. Navigate down through a record to reveal the fields. Drag a field and drop it on the second Source text box.
Record Only – the program enters Record Only into the first Source text box. The Records/Tables window displays next to the Rule Command window. Drag a record and drop it on the second Source text box.
Start Position – a memory variable that contains the value representing the byte, or character position, at which the program begins searching the object specified above.
Length – enter the number of bytes, or characters, to be moved.
Destination – contains the location to which the data is moved. Choose from:
Memory Variable – displays next to the Rule Command window. Drag a memory variable and drop it on the Source text box.
Record/Field – displays next to the Rule Command window. Navigate down through a record to reveal the fields. Drag a field and drop it on the Source text box.
Record Only – displays next to the Rule Command window. Drag a record and drop it on the Source text box.
Start Position – a memory variable that contains the value representing the byte, or character position, at which the program begins searching the object specified above.
Select OK on the String Move window to return to the Rule Command-New window.