home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / bit / listserv / sasl / 3441 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.1 KB  |  25 lines

  1. Newsgroups: bit.listserv.sas-l
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!moe.ksu.ksu.edu!hobbes.physics.uiowa.edu!news.uiowa.edu!news.weeg.uiowa.edu!mford
  3. From: mford@news.weeg.uiowa.edu (Mark Ford)
  4. Subject: SAS/AF Locate command and indexes
  5. Message-ID: <1992Jul27.210550.15622@news.weeg.uiowa.edu>
  6. Organization: University of Iowa, Iowa City, IA, USA
  7. Distribution: usa
  8. Date: Mon, 27 Jul 1992 21:05:50 GMT
  9. Lines: 14
  10.  
  11. I am working on a SAS/AF application under the VMS SAS606 environment.
  12. My application uses the LOCATEC command to search a SAS data set for a match
  13. of the given variable.  (In this case an ID code).  To make the search faster
  14. I would like to use the binary search method.  The data set is also indexed
  15. on the ID code.  Can I use the LOCATEC binary search on the indexed variable 
  16. without having to sort the data set after any adds or deletes?  I have had
  17. trouble doing this.  After adding an observation I had to sort the data set for
  18. the LOCATEC command to find that observation.  Should the index do this or
  19. does the SAS index only work with WHERE and BY clauses?
  20.  
  21. Thank you.
  22. Mark Ford.
  23. mford@umaxc.weeg.uiowa.edu
  24.  
  25.