94 data work.test;
95 capacity = 150;
96 if 100 le capacity le 200 then
98 airplanetype = 'Large';
99 staff = 10;
103 airplanetype = 'Small';
104 staff = 5;
NOTE: The data set WORK.TEST has 1 observations and 3 variables.
NOTE: DATA statement used (Total process time):
real time 0.04 seconds
cpu time 0.03 seconds
Program A's statement if 100 le capacity le 200 then airplanetype = 'Large' and staff = 10; is incorrect because multiple statements are not embedded between the DO and END clauses.
Program C assigns an incorrect value of 'Large' for the variable airplanetype.
Program D assigns an incorrect value of '5' for the variable staff.
Program B assigns the correct values for both variables airplanetype and staff.
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.