The Sort Module is a standalone sort module that enables you to sort and merge data files. It is invoked implicitly when your COBOL program uses the SORT or MERGE statements.
When you perform a SORT operation on a data file, any records with duplicate keys are returned in their original order, regardless of whether or not the DUPLICATES IN ORDER phrase was specified on the SORT statement.
To call the Callable Sort Module explicitly to sort or merge your files, include the following call statement in your program:
call "EXTSM" using function-code, sort-fcd
where the parameters are: