I was reading somewhere where the Merge statement is not often used with sequential files. Is there an alternative or a best practice when using sort and merge statements?
Page 1 / 1
I was reading somewhere where the Merge statement is not often used with sequential files. Is there an alternative or a best practice when using sort and merge statements?
In a sequential file you do not write records based on a key, new records are simply written to the end of the file without regard for the content of the records. So sequential files are very unlikely to be in any sorted sequence to begin with unless you have some sort of a sequential record number that you increment when writing the records.
So I would say that while SORT can be very useful with Sequential files (or any type of file) MERGE really isn't.
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.