hi frds i need a program from u.i hav a flat file n a master file.i need to compare the records of flat file with that of master file.if it does not exist i hav to write it in the mater file.can any one suggest optimum code.
i tried comparing the record of flat file with all the records of master file and so on.but it luks lenghty.can any one provide the code.
if master-file-key = flat-file-key
if master-file-key > flat-file-key
Move ?y? to old-master-file-eof
Move high-key-value to master-file-key.
Move ?y? to flat-file-eof
Move high-key-value to flat-file-key.
Write new-master-file from old-master-file.
Write new-master-file from flat-file.