We have a coding standard that we are not supposed to use the SORT command in COBOL programs (we're using Enterprise COBOL).
I've asked around as to why we have this standard and the only reply is that they heard it used a lot of CPU time and cost a lot. Does anyone know if this is true?
Is there a difference if you want to sort a whole file in a program versus sorting just a working-storage table (10 occurrences). I need to sort up to 10 occurrences of a working storage table for each record that is processed in the program.
I have read about the bubble sorts that we can use to do this. But wanted to know why that would be better than just using the SORT command in this case.
I've asked around as to why we have this standard and the only reply is that they heard it used a lot of CPU time and cost a lot. Does anyone know if this is true?
Is there a difference if you want to sort a whole file in a program versus sorting just a working-storage table (10 occurrences). I need to sort up to 10 occurrences of a working storage table for each record that is processed in the program.
I have read about the bubble sorts that we can use to do this. But wanted to know why that would be better than just using the SORT command in this case.