I am comparing 2 files and changing certain values in the master file. For this I am using the below mentioned splice statement.
SPLICE FROM(T1) TO(OUT) ON(13,11,CH) ON(30,4,CH) -
I really want only to compare the records, nut not to sort all the records based on (13,11,CH) and (30,4,CH). But this splice statement does a sort also, which I really don't want. Any solution for this.
You have to take up extra step of sorting to retain the original order, since the SPLICE operator will sort the i/p records based on the positions specified in ON(p,m,f).
There is no other go.
other than by giving the rec count and sorting it again, is there any other method to rtain the order of the record after splicing it.
That's difficult to say since we don't know what your input records or output records look like.
Show an example of the records (relevant fields) in each input file and what you want for output. Give the RECFM and LRECL of the input files. Give the starting position, length and format of the relevant fields.