Larry, Thank you for looking into this. Yes, I want the most recent Date/Time field LAST which is the opposite of /SD in FLIST. The CMS sort is ascending order only. CMS sort is where I was hoping for a choice of sort orders, but it's not there. Thank you for pointing out the XEDIT sort. I'll look more into the sort stage of your pipe solution. Now I just need to choose between the two solutions.
Have a great weekend, Dave Dave Hansen Eagan Software Systems Branch 651-406-1208 dave.l.han...@email.usps.gov Dave Hansen -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Larry Dinwiddie Sent: Friday, January 07, 2011 9:44 AM To: IBM-MAIN@bama.ua.edu Subject: Re: CMS Sort Descending? Another way (and maybe better for you) is to issue the following: LISTFILE fn ft fm (DA EX This creates a CMS EXEC file XEDIT CMS EXEC A Issue the XEDIT command: sort * d 70 71 64 68 73 80 Issue the XEDIT command: FILE >From the Ready prompt issue: CMS EXEC execname This will issue your EXEC execname against every file in the CMS EXEC file which is now in descending date/time order Larry -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Larry Dinwiddie Sent: Friday, January 07, 2011 8:34 AM To: IBM-MAIN@bama.ua.edu Subject: Re: CMS Sort Descending? Run the following PIPE from your Ready prompt pipe command LISTFILE fn ft fm (DA | sort 63.2 d 57.5 d 66.8 d | > sorted list a Of course you could call the exec from the PIPE if you want, but this gives you a list of files in descending order by date/time Larry -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Charles Mills Sent: Friday, January 07, 2011 8:23 AM To: IBM-MAIN@bama.ua.edu Subject: Re: CMS Sort Descending? It's been a long time since I used CMS, but what happens if you issue the same sort command a second time? There is a VM-specific mailing list I think, but someone here should know the answer. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Hansen, Dave L - Eagan, MN Sent: Friday, January 07, 2011 7:08 AM To: IBM-MAIN@bama.ua.edu Subject: CMS Sort Descending? Group, We maintain the SYSTEM CONFIG on z/VM using an exec that renames the members. I need to run this exec on the oldest file first. If I could sort FLIST/LISTF in descending date order I would be able to process the files in order from top to bottom. I looked at FLIST and found:" If the SORT options are specified when the FLIST command is issued, users should invoke their own sort routines while within the FLIST environent. The exec specified on the SORT option will be given control when the user issues a sort subcommand (/Sn) from the FLIST screen." I didn't find anything for LISTF/FILEL in regards to using a sort exec. Q). In reviewing the CMS SORT command I don't see an option to override the default sort order (ascending EBCDIC order). Is there a way to sort on an FLIST field in descending EBCDIC order? ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html