Within the 'Select Image' event point, write ILF that moves field contents from the Consecutive file into the Indexed file. Write the new record.
If you try to write two records with the same Primary or Unique Key, the WRITE will fail. Check the False condition on a WRITE to catch that and handle it accordingly.
Set --- ALTERNATE IMAGE NUMBER
in Select Image
to selectively display/print records of interest.
Date fields will require special manipulation. Use SET TEMP
commands, to get them into APPX date format.