133 data work.sets;
134 do until (prod gt 6);
135 prod + 1;
NOTE: The data set WORK.SETS has 1 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.00 seconds
The statement, prod + 1; will be resolved as RETAIN prod 0 ; prod= SUM(prod,1) ;. The value for prod increments in each iteration of the do loop block until the condition, prod gt 6 is TRUE. When the value for prod reaches 7, this condition resolves to TRUE and SAS writes this value to the output data set from the PDV.
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.