ElearnSAS.com

ElearnSAS.com
SAS Learning Platform

Base SAS 79

The following SAS program is submitted:
proc datasets lib = sasuser;
contents data = class varnum;
quit;
Which one of the following is the purpose of the VARNUM option?
A. to print a list of variable names
B. to print the total number of variables
C. to print a list of the variables in alphabetic order
D. to print a list of the variables in the order they were created
Click Comment link to get answer

29 comments:

  1. Anonymous3:37 AM

    B

    VARNUM: returns the number of a SAS data set variable's position in a SAS data set.

    VARNAME: returns the name of a SAS data set variable.

    ReplyDelete
  2. Anonymous11:44 PM

    D it is. Check SAS documentation

    ReplyDelete
  3. Anonymous8:05 AM

    D is the correct answer

    ReplyDelete
  4. Anonymous8:56 AM

    VARNUM : Print a list of the variables by their logical position in the data set

    ReplyDelete
  5. Anonymous10:54 PM

    D

    without varnum, proc contents will print the variables in alphabetic order. varnum makes proc contents to print the variables in the order they were created

    ReplyDelete
  6. sweta4:06 PM

    Answer is D.
    Arrange variable in creation order.

    ReplyDelete
  7. Anonymous7:40 PM

    d check the prep guide

    ReplyDelete
  8. Anonymous4:49 PM

    It would print my past 3 years of se(x)ual history.

    ReplyDelete
    Replies
    1. Anonymous8:09 AM

      So missing value?

      Delete
  9. Anonymous1:02 PM

    Neutral gender will be the result for each year.

    Ash, nice.

    ReplyDelete
  10. Anonymous5:18 AM

    I am not getting what this "Neutral gender will be the result for each year" mean..can someone xplain in detail please

    ReplyDelete
  11. i think ans is "C" alphabetical order

    ReplyDelete
  12. Lol at Neutral Gender...

    as for the answer its D! VARNUM returns the variables logical position in the dataset from when it was created in comparison to the others.

    ReplyDelete
  13. its d by default the output in descriptor information is in the way as to create variables in alphabatical order if u want ur variables to be in the order in which they were used in input statement in data set varnum is be used

    ReplyDelete
  14. d: Varnum used with proc content gives details of the dataset variable in the order they are created

    ReplyDelete
  15. Awesome post sas base classes in delhi. Its so much informative for the followers. I like the way you describe this post. Its really helpful for the users of this site. I am also searching about these type of sites now a days. So your site really helps me for searching the new and great stuff. This site contain all my specifications. Thanks for sharing. Keep it up. I am waiting for your more posts like this or related to any other informative topic.

    ReplyDelete
  16. VARNUM returns the number of a variable's position in a SAS data set, or 0 if the variable is not in the SAS data set. This is the same variable number that is next to the variable in the output from PROC CONTENTS,so D

    ReplyDelete
  17. B!!!????
    VARNUM returns the number of a variable's position in a SAS data set, or 0 if the variable is not in the SAS data set. This is the same variable number that is next to the variable in the output from PROC CONTENTS.

    ReplyDelete
  18. https://www.blogger.com/comment.g?blogID=1864015076802946059&postID=266078668880971047&page=1&token=1559824634659&isPopup=true

    ReplyDelete
  19. this post are edifying in Classified Submission Site List India . An obligation of appreciation is all together for sharing this summary, Actually I found on different regions and after that proceeded this site so I found this is unfathomably improved and related.
    https://myseokhazana.com/


    ReplyDelete
  20. Extraordinary Article! I truly acknowledge this.You are so wonderful! This issue has and still is so significant and you have tended to it so Informative.
    Contact us :- https://myseokhazana.com

    ReplyDelete
  21. This is the most predictable blog which I have ever seen. I should need to express, this post will help me a ton to help my orchestrating on the SERP. Much restoring for sharing.
    https://myseokhazana.com


    ReplyDelete
  22. This is a great article with lots of informative resources. I appreciate your work this is really helpful for everyone.
    Faballey
    ecommerce website design
    redbus ticket online booking
    Digital Marketing Institute

    ReplyDelete
  23. Anonymous12:39 AM

    What is the correct answer??

    ReplyDelete