Академический Документы
Профессиональный Документы
Культура Документы
/* Proc SUMMARY and Proc MEANS are essentially the same procedure. */
/* Both procedures compute descriptive statistics. */
/* The main difference concerns the default type of output they produce. */
/* Proc MEANS by default produces printed output in the LISTING window or other
open destination */
/* whereas Proc SUMMARY does not. Inclusion of the print option on the Proc SUMMARY
statement will output results to the */
/* output window. */
/* PROC RANK */
data temp;
input ID Gender $ Score;
cards;
1 M 33
2 M 94
3 M 66
4 M 46
5 F 92
6 F 95
7 F 18
8 F 11
;
run;
/* PROC REPORT */
DATA Parks;
INFILE '/folders/myfolders/all_SAS_data/externalfile/Parks.txt' ;
/* FIRSTOBS=3 MISSOVER; */
INPUT Name $ 1-21 Type $ Region $ Museums Camping;
RUN;
data heart;
set sashelp.heart;
run;
/* ODS */
****************************************************************************;
ODS HTML
PATH = '/folders/myfolders/sasuser.v94/TutorialsPoint/'
FILE = 'PARKS.html'
/* STYLE = EGDefault; */
/* STYLE = HTMLBlue; */
STYLE=Journal;
/* DO UNTIL */
data work;
do i=1 to 20 until(Sum>=20000);
put i=;
put Year=;
put sum=;
Year+1;
Sum+2000;
/* Sum+Sum*.10; */
end;
run;
data work;
n=0;
do until (n<5);
put n=;
n+1;
end;
run;