Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

QUESTION 2 The SAS data sets inventory and product located in temporary library contain the information of inventory level and product id of brands. The

image text in transcribed

QUESTION 2 The SAS data sets inventory and product located in temporary library contain the information of inventory level and product id of brands. The column headers are the actual variable names. The variable Date in the product data set refers to the ordering date of each brand. ID A112 A034 B123 B005 A133 C056 C103 inventory Amount 73 334 245 45 467 33 26 Code A A B B A ID A034 A112 A133 B005 B123 C056 C103 product Date 03/07/2018 12/07/2018 13/07/2018 27/07/2018 28/07/2018 28/07/2018 30/07/2028 Write a DATA Step for the following task: Create a new temporary SAS data set named stock which is a combination of inventory and product data sets. Choose an appropriate combining technique (sort data if necessary). Within the same DATA Step, create a new variable, Category and assign values based on variable Code. If Code is A, Category is equal to Lighting If Code is B, Category is equal to Kitchenware If Code is C, category is equal to Living Room QUESTION 2 The SAS data sets inventory and product located in temporary library contain the information of inventory level and product id of brands. The column headers are the actual variable names. The variable Date in the product data set refers to the ordering date of each brand. ID A112 A034 B123 B005 A133 C056 C103 inventory Amount 73 334 245 45 467 33 26 Code A A B B A ID A034 A112 A133 B005 B123 C056 C103 product Date 03/07/2018 12/07/2018 13/07/2018 27/07/2018 28/07/2018 28/07/2018 30/07/2028 Write a DATA Step for the following task: Create a new temporary SAS data set named stock which is a combination of inventory and product data sets. Choose an appropriate combining technique (sort data if necessary). Within the same DATA Step, create a new variable, Category and assign values based on variable Code. If Code is A, Category is equal to Lighting If Code is B, Category is equal to Kitchenware If Code is C, category is equal to Living Room

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

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

3. How would you address the problems that make up the situation?

Answered: 1 week ago

Question

2. What recommendations will you make to the city council?

Answered: 1 week ago