Please help in SAS...
(this is the data from the dat file) The info for golf.dat is the one below
Kapalua Plantation 18 73 7263 125.00
Pukalani 18 72 6945 55.00
Sandlewood 18 72 6469 35.00
Silversword 18 71 . 57.00
Waiehu Municipal 18 72 6330 25.00
Grand Waikapa 18 72 6122 200.00
Read the data contained in the golf.dat file using a DATALINES statement into a permanent SAS data set called question02. The data in each record are in order: golf course (name), number of holes (holes), par (par), total yardage (yardage), and greens fees (fees). Print the resulting SAS data set ensuring that the output is centered, your page size is no larger than 58 lines, and the linesize no longer than 80 characters. When you print the data set, do what you need to do, to make it look (exactly) like this:
That is: (1) double space your output, (2) label the variables as in the above output, (3) title the output as it appears above, (4) suppress the printing of the observation number, and (5) make sure that the yardage contains a comma (e.g., 7,263) and the fees are preceded by a dollar sign (e.g., $125.00).
The program I wrote
libname perm "C:\temp";
data perm.question02:
infile datalines dsd ;
informat total_yardage fees;
input golfcourse $ holes par total_yardage comma5. fees comma10.2;
datalines;
Kapalua Plantation 18 73 7263 125.00
Pukalani 18 72 6945 55.00
Sandlewood 18 72 6469 35.00
Silversword 18 71 . 57.00
Waiehu Municipal 18 72 6330 25.00
Grand Waikapa 18 72 6122 200.0
;
run;
Double - double spaces the printed output.
Noobs - suppresses the observation number in the output.
Program2
titile "Question#2";
proc print data =question02 double noobs;
var golfcourse par holes total_yardage fees ;
label par ='Par' holes='No. of holes' total_yardage='Yardage' fees='Greens_Fees';
format total_yardage comma5. fees comma10.2;
run;
I am getting error