Top sas interview question and answer

Page 1

Top SAS Interview Question and Answer

Hub4Tech


Question: 1 Explain what is SAS? What are the functions does it performs? Answer: • SAS means Statistical Analysis System, which is an integrated set of software products. Information retrieval and data management • Writing reports and graphics • Statistical analysis, econometrics and data mining • Business planning, forecasting and decision support • Operation research and Project management • Quality Improvement • Data Warehousing • Application Development


Question: 2 Suppose date is 05 sep 2005; i want the output like 05sep 2005 :00:00:00 ; how it will come? Answer: data test_date; input date; informat date datetime18; cards; 05sep2005:00:00:00 run; proc print data=test_date; format date datetime18.; run;


Question: 3 Explain what is the basic structure of SAS programing? Answer: • The basic structure of SAS are • Program Editor • Explorer Window • Log Window


Question: 4 What is option year cut off in sas? by this option we can set the year span like Options year cut off=2050 so it sets year from 2050 to 2049 .


Question: What is the basic syntax style in SAS? Answer: • To run program successfully, and you have following basic elements: • There should be a semi-colon at the end of every line • A data statement that defines your data set • Input statement • There should be at least one space between each word or statement • A run statement • For example: Infile ‘H: \StatHW\yourfilename.dat’;


Question: 6 How to CREATE an external dataset with sas code? Answer: • I thought about sth like this: • Data _null_; filename fileref dsnname='path' • run; • something like this buy it do not work. and i would like to add BLK, DISP; UNIT SIZE


Question: 7 What are some typical functions of Job Tracker? Answer: • The following are some typical tasks of Job Tracker:• Accepts jobs from clients • It talks to the Name Node to determine the location of the data. • It locates Task Tracker nodes with available slots at or near the data. • It submits the work to the chosen Task Tracker nodes and monitors progress of each task by receiving heartbeat signals from Task tracker.


Question: 8 How to add a number to a macro variable? Answer: Use %eval to do simple calculation for macro variables. e.g., data _null_; %let a = 1; %let b = %eval(&a+1); %put a=&a b=&b; run;


On demand Training and Talent Assessment Platform SAS Online Free Practice Test goo.gl/zx3ggd SAS Online Free Interview Question goo.gl/Nlxacf SAS Online Free Tutorials goo.gl/J9P9rk SAS Online Free Quiz goo.gl/x3o5Z0


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.