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:[email protected]] On
Behalf Of Charles Mills
Sent: Friday, January 07, 2011 8:23 AM
To: [email protected]
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:[email protected]] On
Behalf
Of Hansen, Dave L - Eagan, MN
Sent: Friday, January 07, 2011 7:08 AM
To: [email protected]
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 [email protected] 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 [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to