157 data work.pieces;
158 do while (n lt 6);
159 n + 1;
NOTE: The data set WORK.PIECES has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.03 seconds
The statement n+1 ; is equal to:
RETAIN n 0 ;
n = n+1;
The value is incremented in each iteration of the loop. The last iteration executes when the value for variable n is 5 and then n is incremented to 6. Thus the final value of 6 is written by SAS when the RUN; statement occurs.
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.