Chapter Contents |
Previous |
Next |
CUROBS |
Category: | SAS File I/O |
Syntax | |
Arguments | |
Details | |
Examples | |
See Also |
Syntax |
CUROBS(data-set-id) |
Details |
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:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.