1 answer

(8 points) Read the data contained in the question01.dat file directly from the data file into a temporary SAS data

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

Answers

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;

.

Similar Solved Questions

1 answer
Price $14 ooo 2 4 5 6 8 Quantity If the world price is $6, gains...
Price $14 ooo 2 4 5 6 8 Quantity If the world price is $6, gains from trade O 6...
1 answer
A country has GDP per capita equal to $5,000. If the country's GDP per capita increases...
A country has GDP per capita equal to $5,000. If the country's GDP per capita increases at a rate of 5.93% per year then according to the rule of 70 how many years will it take for GDP per capita to equal $20,000? Round to the nearest whole number....
1 answer
5. (10 points) Picture taken from problem 16-108. The rod is in the figure below is...
5. (10 points) Picture taken from problem 16-108. The rod is in the figure below is confined to move along the path due to the pins at its ends. At the instant shown, the rod has an angular velocity of 5 radians/second in the counter clockwise direction. Determine the velocity of points A and B.at t...
1 answer
An important application of regression analysis in accounting is in the estimation of cost. By collecting...
An important application of regression analysis in accounting is in the estimation of cost. By collecting data on volume and cost and using the least squares method to develop an estimated regression equation relating volume and cost, an accountant can estimate the cost associated with a particular ...
1 answer
Using a random sample of 25 vehicles, is there a relationship between a vehicle's weight (measured...
Using a random sample of 25 vehicles, is there a relationship between a vehicle's weight (measured in kg) and it fuel mileage (measured in miles per gallon)? Complete the following correlation and regression analysis using the Minitab Express output. Satterplot of vehicle mileage vs vehicle weig...
1 answer
Economic Growth II — Work It Out Question 2 In the nation of Wooknam, the capital...
Economic Growth II — Work It Out Question 2 In the nation of Wooknam, the capital share of GDP is 35 percent, the average growth in output is 3.0 percent per year, the depreciation rate is 5.0 percent per year, and the capital-output ratio is 4.5. Suppose that the production function is Cobb- ...
1 answer
Cordell Inc. experienced the following events in Year 1, its first year of operation: Received $45,000...
Cordell Inc. experienced the following events in Year 1, its first year of operation: Received $45,000 cash from the issue of common stock. Performed services on account for $73,000. Paid a $4,500 cash dividend to the stockholders. Collected $51,000 of the accounts receivable. Paid $45,000 cash for...
1 answer
QUESTION 6 In an essay published in 2014. Seymour Hersh, citing unnamed sources, used a CIA...
QUESTION 6 In an essay published in 2014. Seymour Hersh, citing unnamed sources, used a CIA term called to describe a presidential policy that was designed to funnel weapons and ammunition from Libya to the opposition in Syria, many of whom were affiliated with al Qaeda. a. the "Rat Line" b....
1 answer
Which of the following describes equity securities, rather than debt securities or derivatives? a) They are...
Which of the following describes equity securities, rather than debt securities or derivatives? a) They are best for hedging against changes in currency exchange rates. b) They offer a fixed rate of return. c) They typically generate the highest returns of the three types of marketable securities. ...
1 answer
What are PAYG obligations? What is the main component of PAYG?How is PAYG paid? When will...
What are PAYG obligations? What is the main component of PAYG?How is PAYG paid? When will a business owner be required to pay PAYG on income?How is PAYG on income reconciled? What is the benefit for large clients making monthly PAYG instalments on wages paid?...
1 answer
Select the major product of the following reaction. + Mg/diethyl ether 1. 2.H20* Y YY YYY...
Select the major product of the following reaction. + Mg/diethyl ether 1. 2.H20* Y YY YYY 01 O IV O III Ono reaction...
1 answer
3 points Save Which alcohol would be a suitable substrate for a dehydration reaction that produces...
3 points Save Which alcohol would be a suitable substrate for a dehydration reaction that produces the alkene shown as the major product? Assume no carbocation rearrangements occur. H2SO4...
1 answer
What does a structure of a pentose sugar or ribose look like. Please darw a diagram,...
What does a structure of a pentose sugar or ribose look like. Please darw a diagram, thank you. What does a structure of a heterocyclic amine or a base look like. Please darw a diagram, thank you....
1 answer
Why does a lake freeze at the top first, rather than throughout or at the bottom?
Why does a lake freeze at the top first, rather than throughout or at the bottom?...
1 answer
(b) Identify ALL two-force members, if any, in the two frames shown: 15 kN 10 KN...
(b) Identify ALL two-force members, if any, in the two frames shown: 15 kN 10 KN 1.5 m 1 m m 60° 3m- -3 m -3 m Fixed 400 N/m...
1 answer
A car is traveling a road that makes quarter of a circle with a constant speed...
A car is traveling a road that makes quarter of a circle with a constant speed s. What is the magnitude of the average velocity v of the car?...