Question

(8 points) Read the data contained in the question01.datPreview the document file directly from the data file into a temporary SAS data set called question01. 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 like this:

Question #1 No. of oreens Golf Course ardage ees Far $125.00 Kapalua Plantation 73 7,263 Pukalan i 6,945 $55.00 72 $35.00 72

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).

Question01.dat

Kapalua Plantation 18 73 7,263 125.00
Pukalani 18 72 6,945 55.00
Sandlewood 18 72 6,469 35.00
Silversword 18 71 . 57.00
Waiehu Municipal 18 72 6,330 25.00
Grand Waikapa 18 72 6,122 200.00


Question #1 No. of oreens Golf Course ardage ees Far $125.00 Kapalua Plantation 73 7,263 Pukalan i 6,945 $55.00 72 $35.00 72 6,469 and lewoOd 71 $57.00 Si lversword 6,330 $25.00 ыа i ehu Mun i c i pal 72 $200.00 Grand i kapa 72 6,122
0 0
Add a comment Improve this question Transcribed image text
Answer #1

create one new folder in C to read and write the datsets.

Write the datsets is to store

read to bring to SAS environment

program1:

data perm.question02;
infile datalines ;
length golfcourse $ 20;
input @1 golfcourse $ & holes par total_yardage fees ;

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;

options linesize=80 pagesize=58;
title "Question#3";
proc print data=perm.question02 double noobs split='*';
var golfcourse par holes total_yardage fees ;
label holes='No. of*holes'
fees='Greens*Fees';
format total_yardage comma5. fees dollar7.2;
run;

Add a comment
Know the answer?
Add Answer to:
(8 points) Read the data contained in the question01.dat file directly from the data file into a temporary SAS data set...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT