Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started