- What SAS statements would you code to read an external raw data file to a DATA step?
- How do you read in the variables that you need?
- Are you familiar with special input delimiters? How are they used?
- If reading a variable length file with fixed input, how would you prevent SAS from reading the next record if the last variable didn’t have a value?
- What is the difference between an informat and a format? Name three informats or formats.
- Name and describe three SAS functions that you have used, if any?
- How would you code the criteria to restrict the output to be produced?
- What is the purpose of the trailing @? The @@? How would you use them?
- Under what circumstances would you code a SELECT construct instead of IF statements?
- What statement do you code to tell SAS that it is to write to an external file? What statement do you code to write the record to the file?
- If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?
- If you’re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?
- What is the one statement to set the criteria of data that can be coded in any step?
- Have you ever linked SAS code? If so, describe the link and any required statements used to either process the code or the step itself.
- How would you include common or reuse code to be processed along with your statements?
- When looking for data contained in a character string of 150 bytes, which function is the best to locate that data: scan, index, or indexc?
- If you have a data set that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variable?
- Code a PROC SORT on a data set containing State, District and County as the primary variables, along with several numeric variables.
- How would you delete duplicate observations?
- How would you delete observations with duplicate keys?
- How would you code a merge that will keep only the observations that have matches from both sets.
- How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.
- What is the Program Data Vector (PDV)? What are its functions?
- Does SAS ‘Translate’ (compile) or does it ‘Interpret’? Explain.
- At compile time when a SAS data set is read, what items are created?
- Name statements that are recognized at compile time only?
- Identify statements whose placement in the DATA step is critical.
- Name statements that function at both compile and execution time.
- Name statements that are execution only.
- In the flow of DATA step processing, what is the first action in a typical DATA Step?
- What is _n_?
Tuesday, July 26, 2011
SAS interview questions
Labels:
employment jobs
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment