DIRSORT (V1.2-1) DIRSORT is a custom subset of the DCL DIRECTORY command. It lists only filename and timestamp information about the files in target directory. The output is sorted by the date- time stamp rather than filename, and can sort the dates in either descending or ascending (default) order. File dates are displayed by default in the YYYY-Mmm-DD format This is user definable by setting the process logical name DIRSORT_FORMAT to another format: $ define DIRSORT_FORMAT "|!DB-!MAAU-!Y4 !H04:!M0:!S0.!C2|" which would display the date in Vms DD-MMM-YYYY format. See Programming Concepts, Tables 6-6 and 6-8 Parameters: DIRSORT accepts one parameter, a VMS filepath which is the target directory. If omitted, default directory is displayed. RMS wildcards (* and %) are also valid. Qualifiers: /DATE=xxxx - if present, DIRSORT will sort the target directory files using the specified date keyword. Valid keywords are BACKUP, CREATE, EXPIRE or REVISE (default). /DELTATIME - if present, DIRSORT will display time info for each file as a delta time value, the difference of the current date-time and the file date-time. /LAYOUT=xxx - Determines the display format for filenames and datestamps. Three keyword values are accepted, DATEFIRST, (default), FILEFIRST and TRUNCATE. The latter two appear identical until the filename exceeds 31 characters. /SORT=xxx - if present, DIRSORT will sort output as specified by the keyword entered. Accepted keywords are DESCENDING or ASCENDING (default). /HELP - Displays this text /VERSION - DIRSORT displays version, build date, and required privs for VMS Install utility.