How do I copy MPE/iX Capture Files using Warehouse ?
Copying Capture File records with Warehouse is tricky because of the MPE/iX file system. The output file should be built first with variable length records and the modes for both the input and output files should have a “v” in front to indicate variable length record access. For example: Your MPE/iX BUILD statement should look like this: BUILD CAPTOUT;REC=-8960,,V,ASCII Your Warehouse OPEN statement to read the source Capture File should look like this: OPEN CAPTIN FIXED CAPTIN MODE=vr Your Warehouse OPEN statement to write to the target Capture File should look like this: OPEN CAPTOUT FIXED CAPTOUT MODE=vw Your Warehouse COPY statement to write to the target Capture File should look like this: COPY CAPTIN TO CAPTOUT Tip : copying Capture File records using Warehouse in this fashion will succeed, but will require more disk space the original Capture file. This is because the full Capture File record is written to the target file resulting in wasted disk space at the end of most records