Are you making progress?
I canÂ´t use the internal sort
I suspect that if you can find a way to what you need "invoking DFSORT" you could also use the SORT statement. . .
I am trying use call DFSORT because I need extract records under conditions using search fields, moreover I won't know how many files will be processed.
This is more of a COBOL challange than a sorting challange. Keep in mind that you would not
implement using/giving in your code, but rather iniput/output procedure. When input/output procedure are used any number of files can be read and "search fields" can be evalueated and only needed data would be RELEASEd to the sort. Similarly, when sorted records are RETURNed from the sort, you have complete control over the processing.