PIPEs would be much easier.

   "PIPE (endchar ?)",

            "< input file x",

            "|  SORT positions",

            "|> output file y"

 

 

Frank M. Ramaekers Jr.

 

 

________________________________

From: The IBM z/VM Operating System [mailto:[email protected]] On
Behalf Of Sergio Lima
Sent: Tuesday, January 04, 2011 8:10 AM
To: [email protected]
Subject: Sort Fields Question

 

Hello List,
 
We have a CMS file, with some fields.
One of this field is a date, in the DD/MM/YY format.
We also have 200 records medium by day.
Another field, is a numeric percentage that I need get the top 50 for
each day.
So, We think execute a sort under a REXX EXEC , like this :
 
trace r                            
queue "1 8 63 65"                  
"sort cpux9 batchw a cpux9 batd a "
exit                               
 
But, looking on HELP of sort command can't see the descending option.
 
We think this, because after the sort, will write another REXX that read
only the first 50 records , and write another output file.
 
Someone already have used the sort with descending order, or know if
have another way to do this?
 
Thanks very much,
 
Sergio Lima Costa
Sao Paulo - Brazil


_____________________________________________________
This message contains information which is privileged and confidential and is 
solely for the use of the
intended recipient. If you are not the intended recipient, be aware that any 
review, disclosure,
copying, distribution, or use of the contents of this message is strictly 
prohibited. If you have
received this in error, please destroy it immediately and notify us at 
[email protected].

Reply via email to