home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / vms / 14631 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.2 KB

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!cs.utexas.edu!sun-barr!olivea!hal.com!decwrl!deccrl!news.crl.dec.com!rdg.dec.com!adserv.enet.dec.com!winalski
  2. From: winalski@adserv.enet.dec.com (Paul S. Winalski)
  3. Newsgroups: comp.os.vms
  4. Subject: Re: fast sort routine
  5. Message-ID: <1992Sep4.220631.17083@rdg.dec.com>
  6. Date: 4 Sep 92 22:06:31 GMT
  7. References: <1992Sep3.235531.7036@macc.wisc.edu>
  8. Sender: news@rdg.dec.com (Mr News)
  9. Reply-To: winalski@adserv.enet.dec.com (Paul S. Winalski)
  10. Organization: Digital Equipment Corporation, Nashua NH
  11. Lines: 16
  12.  
  13.  
  14. In article <1992Sep3.235531.7036@macc.wisc.edu>,
  15. johnson@uwmfe.neep.wisc.edu (Bob Johnson) writes:
  16. |>
  17. |>Does anybody have a very fast sort routine like the DCL SORT command?
  18. |>I need a program to sort 150000 numbers.  I can write them to a file and 
  19. |>spawn SORT and then read them in again, but this seems to be a waste of 
  20. |>time.  I cannot find a way to call the SORT routine from a program without 
  21. |>the use of files.  Thanks.
  22.  
  23. VMS SORT can be called from within programs as well as from DCL.  If you use
  24. the callable interface, you can supply your own routines to provide records to
  25. the sort and to get back the sorted results.  See the SOR$ facility in volume
  26. 3 of the VMS Programmer's Reference.
  27.  
  28. --PSW
  29.