You need to modify any maps that utilize ReadBlock/WriteBlock
on the Output side to receive the desired output.
Use this procedure to modify the affected maps.
- On the Pre-Session On-Begin rules, create and initialize
a global integer variable. This variable is used to store the file
position from the point in the Input file where the ReadBlock/WriteBlock
should be performed.
For example:
Integer Input_pos;
Input_pos = 0;
- On the Input side of the map, on the last valid element
defined that receives data, create an extended rule that performs
the FTELL function. This stores the file position immediately following
the end tag of that element.
For example:
Input_pos = Ftell(0);
- Add the FSEEK function to the extended rule on the Output
side of the map on the line before the ReadBlock/WriteBlock is performed.
This places the file pointer back to the correct position in the Input
file so the ReadBlock/WriteBlock can be performed. For more information
on the Ftell/Fseek extended rule functions, please see Alphabetical
Language Reference in the Application Integration User Guide.
For example:
Fseek(0,Input_pos,current);