/*SAS has three types of files: sas program; sas log; sas output*/

 

/*A SAS program contains two types of steps: DATA step; and PROC step*/

/*Steps are like paragraphs*/

 

/*Each step consists of statements which end with ";"*/

/*Each statement consists of sas keywords and other words*/

 

/*read sas onlinedoc and other books*/

 

/*DATA step*/

data D1;  

 input no GREVERBAL GREMATH;

 datalines;

   1 520 490

   2 610 590

   3 470 450

   4 410 390

   5 510 460

   6 580 350

   ;

run;

/*input data from keyboard*/

 

/*PROC STEP*/

proc means data=D1;

   var GREVERBAL GREMATH;

run;

 

proc print data=D1;

run;