8 data allobs;
9 set sasdata.banks;
11 do year = 2000 to 2020 by 5;
12 capital + ((capital+2000) * rate);
NOTE: There were 5 observations read from the data set sasdata.BANKS.
NOTE: The data set WORK.ALLOBS has 25 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds
The starting dataset SASDATA.BANKS contains 5 records. For each record statement, do year = 2000 to 2020 by 5; iterates 5 times for year values 2000, 2005, 2010, 2015, and 2020. The statement output; in the do loop will write the output to the ALLOBS dataset. A total of 25 records will be written to the output (see below).
BowenL Jun 18, 2015Bryan Jun 19, 2015GeorgeK Nov 19, 2015
nasirchem Jan 28, 2016Rockeps Sep 05, 2016rsnavarro98 Oct 04, 2016
Rockeps Sep 05, 2016
Bi Exam Academy
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.