Sorting mixed case files.

Document ID : KB000054103
Last Modified Date : 14/02/2018
Show Technical Document Details

Question:  

Is there a way to sort files with a mixed case filename or filetype ?

 

 

Answer:

It's possible to do so within an EXEC and then call VM:Sort. 

 

Example:

/* */
trace 0
Address COMMAND
''COPYFILE VIWOV $DEVinfo A = $DEVINFO A (REPLACE''
''VMSORT viwov $devinfo a (fields 1,3,CH,A''
''ERASE VIWOV $DEVINFO A''
''COPYFILE FILE SORTOUT A VIWOV $DEVinfo A (REPLACE''
''ERASE FILE SORTOUT A''
exit rc