POINT Function


Locates an observation identified by the NOTE function

Category: SAS File I/O

Syntax

POINT ( data-set-id , note-id )

Arguments

data-set-id

  • specifies the data set identifier that the OPEN function returns.

note-id

  • specifies the identifier assigned to the observation by the NOTE function.

Details

POINT returns 0 if the operation was successful, ‰  0 if it was not successful. POINT prepares the program to read from the SAS data set. The Data Set Data Vector is not updated until a read is done using FETCH or FETCHOBS.

Examples

This example calls NOTE to obtain an observation ID for the most recently read observation of the SAS data set MYDATA. It calls POINT to point to that observation, and calls FETCH to return the observation marked by the pointer.

 %let dsid=%sysfunc(open(mydata,i));  %let rc=%sysfunc(fetch(&dsid));  %let noteid=%sysfunc(note(&dsid));     ...  more macro statements  ...  %let rc=%sysfunc(point(&dsid,&noteid));  %let rc=%sysfunc(fetch(&dsid));     ...  more macro statements  ...  %let rc=%sysfunc(close(&dsid)); 

See Also

Functions:

  • 'DROPNOTE Function' on page 508

  • 'NOTE Function' on page 671

  • 'OPEN Function' on page 690




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net