Given the input data set INVENTORY as shown below:

Two output data sets are desired, CHIPS and OTHERSNACKS.
*The CHIPS data set should only include QtySold, Price, and Product.
*The OTHERSNACKS data set should include QtySold, Price, product, and Type.
Which Data step creates the two desired output data sets
Select an option, then click Submit answer.
-
○
data chips othersnacks; set: inventory; if Type="chips" then do; keep QtySold Price Product; output chips; end; else output othersnacks; run;
-
○
data chips ( keep=QtySold Price Product) othersnacks; set inventory; if Type="chipa" then output chips; else output otharsnacks; run;
-
○
data chips otharsnacks; set inventory; if Type="chips" then output chips else output otharsnacks; keep QtySold Price Product; run;
-
○
data chips othersnack" set inventory (keep=QtySold Price Product); if Typo~"chips" then output chips; else output othersnacks;
run;
