The SAVE will get "everything which is not on file 2 (the 10's) onto file 1. The "SS" can be replaced by CH for the situation where there is only one value.
I suggested the other way around, assuming that there was more than one detail record, and fewer than three header/trailer records. But, seeing what you have, this is clearer, and only requires amending if/when new types of detail records are created.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum