ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 36

The following SAS program is submitted:
data work.sales;
do year = 1 to 5;
do month = 1 to 12;
x + 1;
end;
end;
run;
Which one of the following represents how many observations are written to the WORK.SALES data set?
A. 0
B. 1
C. 5
D. 60
Click Comment link to get answer

23 comments:

  1. Anonymous5:04 PM

    B, reason: The output is missing.To write all (12*5) 60 values change syntax to :
    .....
    x + 1;
    *output;
    end;
    end;
    run;

    proc print data= work.sales;run;

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

    ReplyDelete
  3. Value of X is 60 but no of observations in that dataset is 1.
    Answer is B

    ReplyDelete
  4. Anonymous1:57 PM

    Number of observation is 1 so Answer is {B}

    ReplyDelete
  5. Anonymous11:23 AM

    Sakar;
    If you do this then it will give you 60 months out put.
    options formdlim = '*' nocenter pageno=1;
    data work.sales;
    do year = 1 to 5;
    do month = 1 to 12;
    Output;
    end;
    end;
    run;
    proc print data=work.sales;
    run;

    The reason it is giving us one observation is x+1, the end output is placed.

    ReplyDelete
  6. Anonymous10:03 AM

    there's only one observation (x=60). Because the output is missing.

    ReplyDelete
  7. Anonymous9:55 AM

    Haha. Caught me on that one! I would have jumped in on 60 as the answer without reading the question properly. x=60 and the number of obs = 1.

    SAS exam requires keen attention to details in each and every question.

    ReplyDelete
  8. Anonymous11:27 AM

    WHICH IS CORRECT ONE

    ReplyDelete
  9. Anonymous10:06 AM

    i am going to give certification 2marrow..is this Q's are enought?

    ReplyDelete
  10. Anonymous6:43 PM

    The one observation is x+1 or is it x=60?

    ReplyDelete
  11. Anonymous2:06 PM

    why year = 6 and month=13?

    ReplyDelete
    Replies
    1. because of x+1
      obs month year x
      1 6 13 60

      Delete
  12. Really a very fine way to express and looking a very pleasant article with full of healthy information. I am definitely going to tell in my class about this platform and the information shared here. Very well written.ระบบขายออนไลน์

    ReplyDelete
  13. Anonymous5:29 PM

    Answer : 60 run the following code
    proc print data=work.sales;
    run;

    ReplyDelete
  14. It is designed for time sharing systems.It is similar to FCFS scheduling,but preemption is added to switch between processes.A small unit of time called time quantum is defined.The ready queue is treated as a circular queue.To implement RR scheduling,we keep ready queue as FIFO queue of processes

    ReplyDelete
  15. Nice post ! Thanks for sharing valuable information with us. Keep sharing.
    microsoft installation and configuration services

    ReplyDelete