28 data last_record;
29 set sashelp.shoes END = last;
30 if last=1 then output;
NOTE: There were 10 observations read from the data set SASHELP.SHOES.
NOTE: The data set WORK.LAST_RECORD has 1 observations and 7 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds
Commentary: [SET STATEMENT] END = option creates and names a temporary variable that contains an end-of-file indicator. Please see below dataset below:
The one and only FREE resource for general SAS online training as well as study guides for the SAS Base Certification. My goal is to create the SAS Certification prep guide that I never found but always wanted. This should also be a place to come if you are new to the language but are simply looking for online SAS training.