ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 6

Which one of the following statements is true regarding the SAS automatic _ERROR_ variable?
A. The _ERROR_ variable contains the values 'ON' or 'OFF'.
B. The _ERROR_ variable contains the values 'TRUE' or 'FALSE'.
C. The _ERROR_ variable is automatically stored in the resulting SAS data set.
D. The _ERROR_ variable can be used in expressions or calculations in the DATA step.
Click Comment link to get answer

50 comments:

  1. Anonymous11:32 AM

    You can write the values of SAS automatic variables to the SAS log to help you analyze your program and data. Your code can test the values of SAS automatic variables to direct conditional execution of DATA step statements.
    Automatic variables are temporary and SAS does not store them in the data sets it creates. To save the value of an automatic variable, assign its value to a data set variable.

    When to use:
    Always review the SAS log to look for notes indicating that _ERROR_ was set to 1.
    Set _ERROR_ to 1 in your code for errors you want flagged in the SAS log. FIRST.variable Indicates whether the data values being processed are from the first observation in a BY group where: variable is the BY-group variable to examine.

    ReplyDelete
  2. Anonymous1:20 AM

    Answer is B and D..

    ReplyDelete
    Replies
    1. billybob2:48 PM

      The value of _error_ is 0 or 1, not true or false (though they are logically equivalent). Answer is just D

      Delete
  3. Anonymous6:04 PM

    Answer is no B, because the value is 1 or 0

    ReplyDelete
    Replies
    1. Anonymous3:38 PM

      The value is 1 or 0,it cannot be true or false.So D is the answer.

      Delete
  4. The answer is A as on off means 0 or 1 and _error_ stores the value 1 when there is error or intitalizes it to 0 when no error is there.

    ReplyDelete
  5. Anonymous2:05 PM

    answer is D.
    both A and B are wrong because the question says the value of _ERROR_ is'ON' or "OFF' it refers to the word on and off not logical valu 0 and 1.

    Similar explanation for B also

    ReplyDelete
  6. swapna A1:47 PM

    The answer is for sure D, because _ERROR_ can be used in calculations or expressions. it is represented by 1 or 0

    ReplyDelete
  7. Anonymous1:02 AM

    answer is D

    ReplyDelete
  8. Anonymous5:37 AM

    agreed that it cannot literally take on the values of on/off or true/false if it is 0/1 so d

    ReplyDelete
  9. Anonymous9:08 PM

    answer is d I think

    ReplyDelete
  10. Anonymous7:15 PM

    Automatic variable is kind logical expression _ERROR_ represented values eitther o (or)1

    ReplyDelete
  11. Anonymous11:48 AM

    Answer is C

    ReplyDelete
  12. aniket3:50 AM

    ans is c. if it show error . the variable name will be stored but the obs for that will not be delivered. so i think ans is c....

    ReplyDelete
  13. Correct Answer is D

    ReplyDelete
  14. Anonymous7:48 AM

    answer is D.

    ReplyDelete
  15. Anonymous10:50 AM

    ans is c

    ReplyDelete
  16. Anonymous9:41 PM

    _N_ and _ERROR_ are not written to the data set.

    ReplyDelete
  17. A is the answer because other answer are not tangible

    ReplyDelete
  18. Anonymous8:30 PM

    Sakar Sham

    Answer is D, in data vector _n_ and _Error_ created and as the error flag that step is done, so it is part in calculation.

    ReplyDelete
  19. Jahangir11:17 PM

    Answer: D

    ReplyDelete
  20. Anonymous5:14 PM

    Ans is D. Very straight forward question.
    Can't be:
    -> A & B b'coz _ERROR_ values is either 0 or 1.
    -> C - It's not part of resulting dataset but it is part of Program Data Vector.

    ReplyDelete
    Replies
    1. its a part of dataset but hidden
      ans) C and D

      Delete
  21. Answer: D

    Check out my new Base SAS practice question at the link below:

    http://sascert3.blogspot.com/2013/03/base-sas-example-question-51.html

    Good luck!

    ReplyDelete
  22. Answer is D

    ReplyDelete
  23. B and D if we consider 1 for True

    ReplyDelete
  24. The Answer is D. However if there are 3 errors in the datastep, what is the value of _error_ variable?

    ReplyDelete
  25. Thanks Karen I needed that. I am autistic and on disability.
    gclub
    gclub casino online

    ReplyDelete
  26. This is an amazing post which is so clear.
    I think this article easy to understand that reader could get useful information and learn lots of things.
    Get Best Anti Adware. Also read about packers and movers in Salt Lake.

    ReplyDelete
  27. This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information.
    Read article on Things to Wear when you’re Working at Height.
    Read Link Resources Blogs
    Read Safety Tips When you Working at Heights.

    ReplyDelete
  28. Thank you for sharing valuable comments for us its very incredible post to whom looking for a particular course if any one who want to learn tally core to advance
    SAS Training in Bangalore

    ReplyDelete
  29. Thanks For sharing a nice post about all Course.It is very helpful and for us.
    SAS training in bangalore
    SAS institutes in bangalore

    ReplyDelete
  30. The Most Popular Slots in Michigan | DMC
    Play one of the best slots in 제천 출장마사지 Michigan. Our Top-Rated Casino 전라남도 출장샵 Game 여수 출장마사지 Selection, including The Best Casinos in 당진 출장샵 Michigan. Play for free at the 부산광역 출장마사지 best online

    ReplyDelete
  31. ------------------------------------------------

    www.iceway.fun

    ------------------------------------------------

    Englisch

    Not sure what to do in your spare time? Visit iceway.fun, we have a wide range of more than 1000 free unique arcade games. In addition, we are the only game site in Europe with a huge book collection. So what are you waiting for? see you at iceway.fun

    Arabic

    لست متأكدا ماذا تفعل في وقت فراغك؟ قم بزيارة iceway.fun ، لدينا مجموعة واسعة من أكثر من 1000 لعبة أركيد مجانية فريدة من نوعها.بالإضافة إلى ذلك ، نحن موقع الألعاب الوحيد في أوروبا الذي يحتوي على مجموعة ضخمة من الكتب. فما تنتظرون؟ اراك في iceway.fun

    Chinese

    不知道在業餘時間做什麼?訪問iceway.fun,我們擁有超過1000 款免費獨特的街機遊戲。此外,我們是歐洲唯一擁有大量圖書收藏的遊戲網站。你還在等什麼?在iceway.fun見

    French

    Vous ne savez pas quoi faire pendant votre temps libre ? Visitez iceway.fun, nous avons une large gamme de plus de 1000 jeux d'arcade uniques gratuits. De plus, nous sommes le seul site de jeux en Europe avec une énorme collection de livres. Alors qu'est-ce que tu attends? à bientôt sur iceway.fun

    Russian

    Не знаете, чем заняться в свободное время? Посетите iceway.fun, у нас есть широкий выбор бесплатных уникальных аркадных игр, более 1000. Кроме того, мы являемся единственным игровым сайтом в Европе с огромной коллекцией книг. И так, чего же ты ждешь? увидимся на iceway.fun

    Spanish

    ¿No sabes qué hacer en tu tiempo libre? Visite iceway.fun, tenemos una amplia gama de más de 1000 juegos de arcade únicos y gratuitos. Además, somos el único sitio de juegos en Europa con una gran colección de libros. ¿Entonces, Qué esperas? nos vemos en iceway.fun

    ------------------------------------------------

    Take me to the best game site in Europe

    ------------------------------------------------

    ReplyDelete