# Find Average of Score: SAS

```/*
Chapter 3
Question 1 : To find average of score : To find average of score : To find average of score
Author Name : Deepak Gupta : Deepak Gupta : Deepak Gupta
*/

data scores;
infile 'd:\dk\scores.txt';
input Gender : \$1.
English
History
Maths
Science;
average = (English + History + Maths + Science)/4;
run;
title 'Listing of Scores';
proc print data=scores noobs;
run;

```

OUT PUT

```LOG:
37 /*
38 Chapter 3
39 Question 1 : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score : To find average of score
40 Author Name : Deepak Gupta : Deepak Gupta : Deepak Gupta : Deepak Gupta : Deepak Gupta : Deepak Gupta
41 */
42 data scores;
43 infile 'd:\dk\scores.txt';infile 'd:\dk\scores.txt';infile 'd:\dk\scores.txt';
44 input Gender : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1. : \$1.
45 English
46 History
47 Maths
48 Science;
49 average = (English + History + Maths + Science)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;)/4;)/4;)/4;)/4;)/4;average)/4;
50 run;run;run;run;run;run;

NOTE: The infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is::infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is:infile 'd:\dk\scores.txt' is:
File Name=d:\dk\scores.txt,
RECFM=V,LRECL=256,LRECL=256,LRECL=256,LRECL=256

NOTE: 4 records were read from the infile 'd:\dk\scores.txt'.
The minimum record length was 12.
The maximum record length was 13.
NOTE: Missing values were generated as a result of performing an operation on missing values.
Each place is given by: (Number of times) at (Line):(Column).
1 at 49:28
NOTE: The data set WORK.SCORES has 4 observations and 6 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.01 seconds

51 title 'Listing of Scores';
52 proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;proc print data=scores noobs;
53 run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;run;

NOTE: There were 4 observations read from the data set WORK.SCORES.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds```

This site uses Akismet to reduce spam. Learn how your comment data is processed.