My requirement is to copy 2 records from input VSAM file to an outfile VSAM file(based on a selection criteria for example if first 2 bytes of the records contain 01). Please note that these records are already existing in the output VSAM file. So effectively I need to overwrite these records in the output VSAM file.
I have been able to achieve this thing in a number of steps using SORT and REPRO.
But, is it possible to achieve this in one step either by using SORT, IDCAMS etc?