Details


CAUTION:

  • Use this function only with an uncompressed SAS data set that is accessed using a native library engine.

If the engine being used does not support observation numbers , the function returns a missing value.

With a SAS data view, the function returns the relative observation number, that is, the number of the observation within the SAS data view (as opposed to the number of the observation within any related SAS data set).

Examples

This example uses the FETCHOBS function to fetch the tenth observation in the data set MYDATA. The value of OBSNUM returned by CUROBS is 10.

 %let dsid=%sysfunc(open(mydata,i));  %let rc=%sysfunc(fetchobs(&dsid,10));  %let obsnum=%sysfunc(curobs(&dsid)); 

See Also

Functions:

  • 'FETCHOBS Function' on page 524

  • '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