Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

9. Using a two-dimensional array Please complete the following query in SAS and provide a copy of your codes The data set orion.msp contains the

9. Using a two-dimensional array

Please complete the following query in SAS and provide a copy of your codes

The data set orion.msp contains the average manufacturers suggested retail price for shoes based upon the product line and product category. the product group ID is the last two digits of Prod_Cat_ID

image text in transcribed

The data set orion.shoe_sales contains product_ID, Product_Name and Total_Retail_Price for all shoes sold

image text in transcribed

using these datasets, generate a code that will create a dataset named Combine1 using a two-dimensional array to combine the table of values from orion.msp with orion.shoe_sales. Include a new variable named Manufacturer_Suggested_Price which is based on the values of product line and product category. The product line is the first two digits of Product_ID. The product category ID is the third and fourth digits of the product_ID variable. Keep only Product_ID, Product_Name, Total_Retail_Price and manufacturer_suggested_price.

A proc print output of the first 5 obs should resemble the sample below

image text in transcribed

msp Prod Line Prod _Cat ID Avg Suggested_Retail_Price 21 21 2101 2102 2201 2202 2301 2302 2401 2402 2 70.787878788 173.79166667 174.39737991 4 23 23 24 24 6 29.625 287.8 msp Prod Line Prod _Cat ID Avg Suggested_Retail_Price 21 21 2101 2102 2201 2202 2301 2302 2401 2402 2 70.787878788 173.79166667 174.39737991 4 23 23 24 24 6 29.625 287.8

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

Microsoft Visual Basic 2005 For Windows Mobile Web Office And Database Applications Comprehensive

Authors: Gary B. Shelly, Thomas J. Cashman, Corinne Hoisington

1st Edition

0619254823, 978-0619254827

Students also viewed these Databases questions

Question

8. Set goals that relate to practice as well as competition.

Answered: 1 week ago