Thursday, October 4, 2012

Travelling

Writing in progress.. Will post soon.

Sas Interview Questions 9


How is the variable Amount labeled and formatted in the PROC PRINT output?
data credit;
   infile creddata;
   input Account $ 1-5 Name $ 7-25 Type $ 27
         Transact $ 29-35 Amount 37-50;
   label amount='Amount of Loan';
   format amount dollar12.2;
  
run;

Sas Interview Questions 8

Which program does not contain an error?
a.                proc report data=sasuser.houses nowd;
b.                    column style bedrooms baths;
c.                    define style / order;
d.                    define bedbathratio / computed format=4.2;
e.                    compute bedbathratio;
f.                         bedbathratio=baths.sum/bedrooms.sum;
g.                    endcomp;

Sas Interview Questions 7


What does the following statement do?
libname osiris spss 'c:\myfiles\sasdata\data';
a.         defines a library called Spss using the OSIRIS engine
b.         defines a library called Osiris using the SPSS engine
c.          defines two libraries called Osiris and Spss using the default engine
d.         defines the default library using the OSIRIS and SPSS engines

Sas Interview Questions 6



201. The following program is submitted.
data test;
input name $ age;
cards;
John +35
;run;

 Which values are stored in the output data set?

Sas Interview Questions 5



151. Which SAS function below returns an argument with leading blanks moved to the end of the value?
         1. RIGHT
         2. TRIM
         3. LENGTH
         4. JUSTIFY
         5. LEFT

SAS Interview Questions 4



126. data samp;
Set emp(keep =a b c d e);
If a=100 then d=50;
Keep a b;
Run; 
How many variable will be written to dataset samp; 

SAS Interview questions 3



1. The following SAS program is submitted:
data _null_;
set old (keep = prod sales1 sales2);
file 'file-specification';
put sales1 sales2;
run;
Which one of the following default delimiters separates the fields in the raw data file created?

SAS Interview questions 2



1. The following SAS program is submitted:
libname sasdata 'SAS-data-library';
data test;
set sasdata.chemists (keep = job_code);
if job_code = 'chem3'
then description = 'Senior Chemist';
run;

SAS Intervew Questions 1

  
1.The following SAS program is submitted:
data test;
set sasuser.employees;
if 2 le years_service le 10 then
amount = 1000;
else if years_service gt 10 then
amount = 2000;
else
amount = 0;
amount_per_year = years_service / amount;
run;
Which one of the following values does the variable AMOUNT_PER_YEAR contain if an employee has been with the company for
one year?