|
|||
|
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Kitty > Lee > Sent: Thursday, May 25, 2006 9:57 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Re: Point function: something's wrong in my code > > The index and key function works well. The reason why I used POINT is > because of a demonstration given by Muthia Kachirayan. (see post 199231 > 06/03/29). In that example, POINT works well. However I couldn't get it to > work in my own code. I browsed through the SAS HELP document. Seems like > POINT and KEY can do similar things, though they can't be used together. > > K. > > Kitty, In this situation, using key= does a lookup based on the variable value. Using Point= essentially specifies the physical row number of the dataset which you want to retrieve. The reason it worked in the example you cited was that ID was equal to the row number in the MASTER dataset. Hope this is helpful, Dan Daniel J. Nordlund Research and Data Analysis Washington State Department of Social and Health Services Olympia, WA 98504-5204 |
|
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Re: Friday Contest: What's wrong with this code? | Chang Chung | Newsgroup comp.soft-sys.sas | 0 | 12-15-2008 02:44 PM |
| Re: Include code based on data set variable | Chang Chung | Newsgroup comp.soft-sys.sas | 0 | 05-13-2008 05:32 PM |
| Re: SQL Median Function Should be Critical Alert Tech Support | nospam@HOWLES.COM (Howard Schreier | Newsgroup comp.soft-sys.sas | 0 | 08-21-2006 12:08 AM |
| SCL Joe (was RE: macro structure) | Gregg P. Snell | Newsgroup comp.soft-sys.sas | 0 | 06-27-2006 07:59 PM |
| Re: What's wrong with this macro? Thank you | Ian Whitlock | Newsgroup comp.soft-sys.sas | 0 | 11-11-2004 08:29 PM |