Multiple choice technology programming languages

The following SAS program is submitted: data allobs; set sasdata.origin (firstobs = 75 obs = 499); run; The SAS data set SASDATA.ORIGIN contains 1000 observations. How many observations does the ALLOBS data set contain?

  1. 425

  2. 424

  3. 499

  4. 1000

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The FIRSTOBS=75 option starts reading at observation 75, and OBS=499 reads through observation 499. Since SAS counts inclusively, observations 75 through 499 give 499-75+1 = 425 observations. The SET statement reads from an existing dataset, so the dataset size of 1000 is irrelevant.