I have no experience with DMSGETDF... Is this a R/W minidisk? Only for R/O minidisks CMS keeps the FST's sorted.
I would make the program call a REXX EXEC that in its turn executes a PIPE that contains a LISTFILE and SORT stage. The PIPE could pass the sorted list of files in the stack where your program retrieves them. Or, more elegant, your assembler program allocates a buffer large enough to store the result of the LISTFILE, prepares the PIPE command with the LISTFILE and SORT, the last stage would be a STORAGE stage to write the result in your program's buffer. 2008/1/26, Fox <[EMAIL PROTECTED]>: > Hi folks, > > I am wirting an assembler program using CMS callable services. My simple > program opens a Minidisk with DMSOPDIR with intent FILE and retrieves the > > files stored there with DMSGETDF. I encountered that the entries are not > sorted by fn, ft, fm but are coming in a kind of random order. > > I would like to know how how if there is a way to receive the files in a > sorted order? > > Thank you very much in advance. > > BR Fox. > -- Kris Buelens, IBM Belgium, VM customer support
