Tuesday, June 28, 2011

Enter: SAS


          Based on my experience at University (Dept. and Hostel) I wrote few SAS codes….( Don’t  try these codes at home. :))

1.      Refractory:- Earlier the only way out for food was Refractory. The food used to be too awesome! (Pun intended). After few months even you can predict which vegetable you going to get served.

Data Refractory;
                Set  Univ.refractory;
                if vegetable = “green”  then
                put=’impossible event’;
run;

2.       Grades:-

Proc format lib=marks;
                Value grade
                <40 = ‘F’
        40-45=’E’
       45-50=’D’
      50-55=’C’
     55-65=’B’
    65-75=’A’
     >75  = ‘O’
;
Run;


Data grade_sheet;
                Set grades_details;
Format  marks  grade. ;
Put= last.subject;
Run;

OUTPUT:              E  D  C  E  E……E  D  F
                                D  D  C  E  E……E  D  F
                                A  D  C  E  E……F  D  E
                                E  D  C  E  E……E  D  F
                                E  F  F  F  E…… F  D  F.
                                Life contingency.
 

3.       Tiffin:-  Pay anything, quality and quantity will remain intact.

Proc  Optimize data= tiffin;
                Var     limited_subji   paperthin_chapati   tiffin_time;
Time=scan(tiffin_time,1,1);
If time < 9 then;
run;

Output:  The dataset contains zero observations.


4.        Girls Cricket Team :- Being a coach for 2 years, it was real fun to work with
                                      Them.( No pun intended…Lol)

Proc report data=Gcricket;
                Define number / max  ‘No of players interested in playing’;
Run;

Output:  No of players interested in playing= 12.
(Selection criteria were very tough. :) )

          

Sunday, June 26, 2011

They say its 25, and here......


PS :- Location: Tilak hotel.