Using ICETOOL with only 2 steps: Sort input in opposite order key taking n first output records; then, sort result file again.
Raul Digestani -----Mensaje original----- De: IBM Mainframe Discussion List [mailto:[email protected]] En nombre de HUTCHISON Gregory Enviado el: Jueves 28 de Julio de 2011 11:30 Para: [email protected] Asunto: Re: 2nd question about SORT: only taking the last n records into SORTOUT Sort can get a record count but I'm not sure how you would use that count for your need. Hutchison, Gregory A. Oregon DOT DMVIS phone:503-945-7081 fax:503-945-5220 [email protected] -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Dr. Stephen Fedtke Sent: Thursday, July 28, 2011 5:23 AM To: [email protected] Subject: 2nd question about SORT: only taking the last n records into SORTOUT hi all, does any of you have a recommendation on advising SORT to only take the last n records into SORTOUT. problem is, for STARTREC=xxx you would need to know the resulting total number in advance. best, many thanks! stephen --- Dr. Stephen Fedtke Enterprise-IT-Security.com Seestrasse 3a CH-6300 Zug Switzerland Tel. ++41-(0)41-710-4005 www.enterprise-it-security.com ---------------------------------------------------------------------- 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

