Thursday 29 January 2015

Latest TOP SAS Programming Questions and Answers(Part2)

11. How do you control the number of observations and/or variables read or written?
A) FIRSTOBS and OBS option

12. Approximately what date is represented by the SAS date value of 730?
A) 31st December 1961

13. Identify statements whose placement in the DATA step is critical.
A) INPUT, DATA and RUN…

14. What does the RUN statement do?
A) When SAS editor looks at Run it starts compiling the data or proc step, if you have more than one data step or proc step or if you have a proc step. Following the data step then you can avoid the usage of the run statement.

15. Why is SAS considered self-documenting?
A) SAS is considered self documenting because during the compilation time it creates and stores all the information about the data set like the time and date of the data set creation later No. of the variables later labels all that kind of info inside the dataset and you can look at that info using proc contents procedure.

16. What are some good SAS programming practices for processing very large data sets?
A) Sort them once, can use firstobs = and obs = ,

17. What is the different between functions and PROCs that calculate thesame simple descriptive statistics?
A) Functions can used inside the data step and on the same data set but with proc's you can create a new data sets to output the results. May be more ...........

18. If you were told to create many records from one record, show how you would do this using arrays and with PROC TRANSPOSE?
A) I would use TRANSPOSE if the variables are less use arrays if the var are more ................. depends

19. What is a method for assigning first.VAR and last.VAR to the BY groupvariable on unsorted data?
A) In unsorted data you can't use First. or Last.

20. How do you debug and test your SAS programs?
A) First thing is look into Log for errors or warning or NOTE in some cases or use the debugger in SAS data step.
More Questions :-
Part1  Part2  Part3  Part4  Part5

No comments:

Post a Comment