Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How can I Print observations 11 to 20., Sum the saleprice variable in the report. Then, break this total sum up by store (YES, Yes

How can I Print observations 11 to 20., Sum the saleprice variable in the report. Then, break this total sum up by store ("YES", "Yes" or "Y" as "online" and "NO", "No" or "N" for "in store")? The data set that is created from this datafile is named as "stones".

My code is

Proc Print Data = .stones (firstobs =11 Obs = 20);

Sum saleprice;

By Store;

Pageby Store;

Run;

/*But this did not work. DO I need to assign "YES" "Yes" "Y" from the variable Store to the new value of "In store" ?*/

image text in transcribed
Source Product saleprice store Delivery Britain Green Crystal 40.95 YES USA Amyst 34.95 No 5 Mongolia Purple Crystal 45.95 YES 5 USA White Crystal 34.95 Yes USA Bone Fossil 54.95 No Turkey Opal 44.95 Y USA Blue Emerald 44.95 No USA RedEmerald 45.95 No USA Crystal 40.95 YES USA Iron Mine 40.95 N USA Marble 36.855 YES USA Copper 36.76 YES USA Tin 50.95 YES Argentina Zinc 44.95 N Afganistan White Corol 44.95 Y China Blue Crystal 40.95 N Japan Fool's Gold 40.455 Y India Sodium 40.95 Yes India Red Coral 45.95 Yes India Potassium 34.95 Yes India Obsedian 34.95 N India Tatanium 34.95 Yes

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction to graph theory

Authors: Douglas B. West

2nd edition

131437372, 978-0131437371

More Books

Students also viewed these Mathematics questions

Question

What are the methods by which a firm can enter foreign markets?

Answered: 1 week ago

Question

3. Describe in detail the process of listening.

Answered: 1 week ago