Question: 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
Get step-by-step solutions from verified subject matter experts
