Www Sconsig Com Tipscons List Sas Tech Questions Htm

download Www Sconsig Com Tipscons List Sas Tech Questions Htm

of 14

Transcript of Www Sconsig Com Tipscons List Sas Tech Questions Htm

  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    1/14

  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    2/14

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    You are interviewing a candidate with a sharp navy suit, an impressive resume, ten years SASexperience, who knows his/her strengths and weaknesses and where he/she wants to be in 5

    years. But how do you tell if this ten years of experience is really ten years, or the same year

    over and over again? If, indeed, past behavior (and/or past job performance) is the best

    indicator of future performance, how are we, the SAS community, judging and being judged asjob applicants. What are assessment criteria?

    The author developed a survey tool administered to selected SAS programmers and managersto see if the tricks of our trade can be determined. What techniques are being used to interview

    and assess SAS programmers and their productivity? This paper will explore the results of thissurvey, looking at details in the following areas: assessing your needs as a hiring entity,

    developing probing technical SAS questions, identifying resume red flags, conducting useful

    phone interviews, proficiency testing, code walkthroughs, metrics, standards, and qualitycontrol.

    Her most current article ("The Ultimate Match Merge: Hiring the BEST SAS Programmers",SUGI 25) can be viewed here Click Here . This is a PDF file.

    Submitted by: Mayeux, Brian C.

    Email: [email protected]

    Does SAS have a function for calculating factorials ?

    My Ans: Do not know.Sugg Ans: No, but the Gamma Function does (x-1)!

    What is the smallest length for a numeric and character variable respectively ?

    Ans: 2 bytes and 1 byte.Addendum by John Wildenthal - the smallest legal length for a numeric is OS dependent.

    Windows and Unix have a minimum length of 3, not 2.

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfhttp://www.sconsig.com/tipscons/neilhoward_sugi25.pdfmailto:[email protected]
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    3/14

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    What is the largest possible length of a macro variable ?Ans: Do not know

    Addendum by John Wildenthal - IIRC, the maxmium length is approximately the value of

    MSYMTABMAX less the length of the name.

    List differences between SAS PROCs and the SAS DATA STEP.

    Ans: Procs are sub-routines with a specific purpose in mind and the data step is designed to

    read in and manipulate data.

    Does SAS do power calculations via a PROC?Ans: No, but there are macros out there written by other users.

    How can you write a SAS data set to a comma delimited file ?Ans: PUT (formatted) statement in data step.

    Submitted by Jack N Shoemaker

    Email: [email protected]

    1. Have you ever been to any user conferences? If so, which ones? Do you remember any

    paper/presentation which stood out? If so, why?

    Answers: I use this to gauge experience and level of expertise. 12+ years of SAS experience on

    the resume, but no user activity raises red flags. I can understand no SUGI or RSUG forfinancial reasons, but it's hard to justify no local meetings.

    2. What editor do you use?

    Answers: Emacs - hired on the spot. Kedit, UltarEdit, Xedit, vi, ISPF are also acceptable

    answers. What I'm looking for is a sense that the candidate can interact with the OS beyondSAS. Of course, Roger DeAngelis ([email protected]) is a DM bigot, but he has good reasons

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfmailto:[email protected]
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    4/14

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    for doing so. With that exception, I feel just using DM displays a lack of intellectual curiosityabout the rest of the OS which, to me, results in low scores.

    3. What was your favorite course in high school?

    Good Answers: Music, geometry, algebra - in particular word problems, calculus.

    Questions submitted by Janet Stuelpner

    What is the difference between a FUNCTION and a PROC?

    Example: MEAN function and PROC MEANS

    Answer: One will give an average across an observation (a row) and the other will give an

    average across many observations (a column)

    What are some of the differences between a WHERE and an IF statement?

    Answer: Major differences include:

    IF can only be used in a DATA stepMany IF statements can be used in one DATA step

    Must read the record into the program data vector to perform selection with IF

    WHERE can be used in a DATA step as well as a PROC.A second WHERE will replace the first unless the option ALSO is used

    Data subset prior to reading record into PDV with WHERE

    Name some of the ways to create a macro variable

    Answer:

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    5/14

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    %letCALL SYMPUT(....)

    when creating a macro example:

    %macro mymacro(a=,b=);

    in SQL using INTO

    Questions submitted by Charles Patridge

    1. Question: Describe 1 way to avoid using a series of "IF" statements such as

    if branch = 1 then premium = amount; elseif branch = 2 then premium = amount; else

    if..... ; else

    if branch = 20 then premium = amount;

    Answer: Use a Format and the PUT function.

    Or, use an SQL JOIN with a table of Branch codes.Or, use a Merge statement with a table of Branch codes.

    2. Question: When reading a NON SAS external file what is the best way of reading the file?Answer: Use the INPUT statement with pointer control - ex: INPUT @1 dateextr mmddyy8. etc.

    3. Question: How can you avoid using a series of "%INCLUDE" statements?Answer: Use the Macro Autocall Library.

    4. Question: If you have 2 sets of Format Libraries, can a SAS program have access to bothduring 1 session?

    Answer: Yes. Use the FMTSEARCH option.

    5. Question: Name some of the SAS Functions you have used.

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    6/14

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Answer: Looking to see which ones and how many a potential candidate has used in the past.

    6. Question: Name some of the SAS PROCs you have used.

    Answer: Looking to see which ones and how many a potential candidate has used in the past,as well as what SAS products he/she has been exposed to.

    7. Question: Have you ever presented a paper to a SAS user group (Local, Regional or National)?

    Answer: Checking to see if candidate is willing to share ideas, proud of his/her work, not afraidto stand up in front of an audience, can write/speak in a reasonable clear and understandable

    manner, and finally, has mentoring abilities.

    Interview questions for a SAS data support manager by Ron Fehd of CDC Atlanta GA USA

    [email protected]

    Question: How would you check the uniqueness of a data set? i.e. that the data set was uniqueon its primary key (ID). suppose there were two Identifier variables: ID1, ID2

    answer:

    1. proc FREQ order = FREQ;tables ID;

    shows multiples at top of listing

    2. Or, compare number of obs of original data set and data after

    proc SORT nodups

    or is thatproc SORT nodupkey

    3. use first.ID in data step to write non-unique to separate data set if first.ID and last.IDthen output UNIQUE; else output DUPS;

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    7/14

    pdfcrowd comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Author: Roland Rashleigh-BerryEmail: [email protected]

    The following code illustrates the scope of macro variables. If you applyfor a job writing SAS macros you may be quizzed on this so it is useful toknow it.

    1 /* RECOMMENDATION: Have global macro variables start and end with an2 underscore exclusively and then no confusion will ever arise. Declare3 all other macro variables as local at the start of the macro before4 using them and then they will never overwrite those of the same name5 outside the macro. */6789 options nodate nonotes;

    10111213 %*- scope of macro variables examples;

    141516 %*- using the same macro variable inside another macro overwrites it;

    1718 %let a=5;1920 %macro testa;

    21 %let a=99;22 %mend testa;23 %testa;2425 %put >> a was 5 and now a=&a;

    >> a was 5 and now a=99

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    8/14

  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    9/14

    df d mi b PRO i Are you a developer? Try out the HTML to PDF API

    62 %let d=2;

    6364 %macro testd;

    65 %local d;66 data _null_;67 call symput('d',put(7,1.));68 run;69 %mend testd;70 %testd;7172 %put >> d was 2 and it is still the same d=&d;

    >> d was 2 and it is still the same d=27374757677 %*- declaring a macro variable as global will not change its contents;

    78

    79 %let e=5;8081 %global e;

    8283 %put >> e was 5 and it is still the same e=&e;

    >> e was 5 and it is still the same e=584858687

    88 %*- macro variables created in a macro are local to it only;89 %*- unless you a) "symput" it in the example previously....;9091 %macro testf;

    92 %let f=5;93 %mend testf;94 %testf;9596 %put >> f=&f does not exist;

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    10/14

    df di b PRO i Are you a developer? Try out the HTML to PDF API

    WARNING: Apparent symbolic reference F not resolved.>> f=&f does not exist979899100101 %*- .... or b) declare it as global before you use it;

    102103 %macro testg;

    104 %global g;105 %let g=5;106 %mend testg;107 %testg;108109 %put >> g=&g exists;

    >> g=5 exists110111112113 %*- but you are not allowed to declare it as global if you have;

    114 %*- already used it as local. The following will cause an ERROR;115116 %macro testh;

    117 %let h=8;118 %global h;119 %mend testh;120 %testh;ERROR: Attempt to %GLOBAL a name (H) which exists in a local environment.

    Author: Girish Patel

    Email: [email protected]

    Frequently Asked Interview Questions

    Several of the frequently asked job interview questions may sound familiar. Although these

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdfmailto:[email protected]
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    11/14

    df di b PRO i A d l ? T t th HTML t PDF API

    questions are not technical, they are used to size up the candidate and reveal his priorities and

    values.You will find a couple of questions designed for either employees or contractors at the end of

    the list. Carefully considering your answers to these questions will provide practice and insure thatyour responses are well thought out.

    1. Why are you leaving your current job?

    2. What do you know about our company?

    3. In your current job, what do you like most and least?4. What are your strengths or strong points?

    5. What are your weaknesses?

    6. Tell me about yourself

    7. Why do you want to work for us?8. What about this job do you find most and least attractive?

    9. Why should we hire you? What do you have to offer?

    10. What's your greatest accomplishment in your career?11. What's the most difficult decision you ever had to make in your career?

    12. If I talked to your manager, what 3 adjectives would he/she use to describe you?

    13. How do you keep abreast of new developments in Information Technology?14. What new skills or capabilities have you developed over the past year?

    15. How would you describe your work style?

    16. Why do you think you would like this position? Company?17. When can you start work?

    18. Do you work best independently or with a team?19. Why have you changed jobs so often?20. What is the longest length of time you have worked on one job or project?

    21. How do you feel about working overtime?

    22. How do you feel about providing on-call support?23. How long will it take you to learn our environment and start producing?

    24. Can you pick up a new skill without formal training?

    25. What hours do you prefer to work?

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    12/14

  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    13/14df di b PRO i

    Are you a developer? Try out the HTML to PDF API

    5. Ask about the system/project described to you:What phase of the system development life cycle are they in?

    Are they on schedule?

    Are the deadlines tight, aggressive or relaxed?

    6. What qualities and/or skills of your worst programmer/analyst or contractor would youlike to see changed?

    7. What would you like to see your newly hired achieve in 3 months? 6 months?

    8. How would describe the tasks I would be performing on a average day?9. How are program specifications delivered; written or verbal? Do I create my own after

    analysis and design?

    10. How do I compare to the other candidates you've interviewed?11. How would you describe your ideal candidate?

    12. When will you make a hiring decision?

    13. When would you like for me to start?14. When may I expect to hear from you?

    15. What is the next step in the interviewing process?

    16. Why are you looking to fill this position? Did the previous employee leave or is this a newposition?

    17. What are the key challenges or problems I will face in this position?

    18. What extent of end-user interface will the position entail?

    For Employees to Interviewers

    1. What are the chances for advancement or increase in responsibilities?

    2. What is your philosophy on training?

    3. What training program does the company have in place to keep up to date with futuretechnology?

    4. Where will this position lead in terms of career paths and future projects?

    For Contractors to Interviewers

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf
  • 8/12/2019 Www Sconsig Com Tipscons List Sas Tech Questions Htm

    14/14Are you a developer? Try out the HTML to PDF API

    1. What is the length of this contract?2. What length of time will this position progress from temp to perm?

    3. Is the length of this contract fixed or will it be extended?

    4. What is the ratio of contractors to employees working on the system/project?

    http://pdfcrowd.com/http://pdfcrowd.com/redirect/?url=http%3a%2f%2fwww.sconsig.com%2ftipscons%2flist_sas_tech_questions.htm&id=ma-140805224202-533caab9http://pdfcrowd.com/customize/http://pdfcrowd.com/html-to-pdf-api/?ref=pdf