Optional. Use MOVE I to rearrange the pieces of the input record before the record is processed. This feature enables you to rearrange the components of your input records before any other CODE-1 Plus processing takes place. Note that the information you identify is copied to the location you specify, but it is not removed from its original location in the input record. This feature is useful for "saving" data that might otherwise be overwritten by data returned by CODE-1 Plus. A maximum of 100 MOVE I parameters can be defined for a job. The parameters are processed one at a time, in sequence from top to bottom.
Before processing, CODE-1 Plus first copies the entire input record into an input record array. Then, if you specify any MOVE I operations, CODE-1 Plus copies the entire record into a temporary work area. It then takes data from a specified position in the work area, and puts it in a specified position in the input record array. Once CODE-1 Plus executes all of the MOVE I operations, it clears the work area and processes the record as it now appears in the input record array.
For example, the input record has the following structure:
AAAAABBBBBCCCCC
If we move the information in positions 11-15 to positions 1-5, CODE-1 Plus copies the record to the work area, and executes the move operation. When the operation is complete, our input record array and work area is:
Input Record Array Work Area
CCCCCBBBBBCCCCC AAAAABBBBBCCCCC
Then, if we move the information from positions 1-5 to positions 11-15, our input record array and work area appear as follows:
Input Record Array Work Area
CCCCCBBBBBAAAAA AAAAABBBBBCCCCC
Position |
Field Name |
Description |
---|---|---|
1-6 |
Keyword |
Required. MOVE I is the only acceptable entry. |
8-10 |
Location of Source |
Required. Specify the location in the work area of the information to be copied. Optionally, you can enter one of the following codes to copy one of the following types of generic information to the target location:
|
12-13 |
Length of Source/Target |
Required. Length of the information to be copied to the target location. No default. |
15-17 |
Location of Target |
Required. Location in the input array to which you want the source information copied. No default. |