117 data work.passengers;
118 if OrigPassengers = . then
119 OrigPassengers = 100;
120 TransPassengers = 100;
121 OrigPassengers = .;
122 NonPaying = 10;
123 TotalPassengers = OrigPassengers + TransPassengers;
NOTE: Missing values were generated as a result of performing an operation on missing values.
Each place is given by: (Number of times) at (Line):(Column).
1 at 123:38
NOTE: The data set WORK.PASSENGERS has 1 observations and 4 variables.
NOTE: DATA statement used (Total process time)
real time 0.02 seconds
cpu time 0.01 seconds
The arithmetic operator "+" performs addition (surprise). It produces a total value if all values used in the addition are non-missing values. If any one value is missing then a missing value is given in the output.
The statement TransPassengers = 100; assigns a value of '100' for the variable TransPassenger.
The statement OrigPassengers = .; assigns a missing value of '.' for the variable OrigPassengers.
The statement TotalPassengers = OrigPassengers + TransPassengers; performs addition with one missing value; thus, a missing value is given in the output (as shown 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.