ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 84

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?
A. 424
B. 425
C. 499
D. 1000
Click Comment link to get answer

19 comments:

  1. Correct answer is 'B'

    ReplyDelete
  2. 499-74=425

    so 'B' is the answer

    ReplyDelete
    Replies
    1. Anonymous5:18 AM

      I guess it should be (499-75) + 1

      Delete
    2. Anonymous7:47 AM

      because number from
      1 - 10 including 10 equal 10
      1- 10 not including 10 = 9

      Delete
  3. Anonymous6:09 AM

    B. 425

    ReplyDelete
  4. Anonymous12:32 PM

    answer is b 499-75+1=425

    ReplyDelete
  5. Anonymous1:19 PM

    Could you explain where the +1 comes from? Thanks.

    ReplyDelete
    Replies
    1. when it read from 75 to 499 ,it will include 75 ,from 75 to it will read upto 499 so ,
      499 - 75 +1 = 425

      Delete
  6. Anonymous1:53 PM

    +1 because both 499 and 75 will be outputted. For example 95 to 100 including 95 are (100-95+1) 6 values not (100-95) 5 values. Hope this makes sense.

    ReplyDelete
  7. Anonymous3:21 PM

    in new dataset allobs, the first obsn is 75 , & last one is 499, u hv to count the 75th obsn as the 1st obsn in the new data set, dats y +1 comes after (499-75)

    >>joydeep786@gmail.com

    ReplyDelete
  8. Anonymous11:46 AM

    Let answer simple way.
    How about 10 to 15? is it 5 or 6?
    In the count we start from 10 11 12 13 14 15 = 6.

    How ever you get the answer either adding 1 or subtracting 1 from 10, you find your way and figure out.And tell us if there is any unique way to find the right answer. Man do not get confused in simple math.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Anonymous11:23 AM

    It's C. The option tells SAS how many records to read, not what record to stop on.

    ReplyDelete