Question: using sas code list the observations for employee numbers ( EmpID ) 9 8 8 8 and 0 1 7 7 . Do this in

using sas code list the observations for employee numbers (EmpID)
9888 and
0177. Do this in one of two ways: one, using OR operators or two, using the IN operator.
Note: EmpID is a character variable. Next, create a new temporary SAS dataset containing
Region and TotalSales plus a new variable called Weight, with values of
1.5 for the North
Region,
1.7 for the South Region, and
2.0 for the West and East Regions. Use a SELECT
statement to do this. Finally, list all the observations where Region is
North and Quantity is
less than
60. Include in this list any observations where the customer name (Customer) is
Pets are Us.
Using the Sales.xls dataset,
mpID Name Region Customer Item Quantity UnitCost TotalSales
1843 George SmithNorth Barco Corporation144L 508.99449.5
1843 George SmithSouth Cost Cutter's1221005.99599
1843 George SmithNorth Minimart Inc.188S 3519915597
1843 George SmithNorth Barco Corporation908X 151295129
1843 George SmithSouth Ely Corp. 122L 1029.95299.5
0177 Glenda JohnsonEast Food Unlimited188X 1006.99699
0177 Glenda JohnsonEast Shop and Drop144L 1008.99899
1843 George SmithSouth Cost Cutter's855W 191099109
9888 Sharon Lu West Cost Cutter's122505.99299.5
9888 Sharon Lu West Pet's are Us100W 10001.991990
0017 Jason NguyenEast Roger's Spirits122L 50039.9919995
0017 Jason NguyenSouth Spirited Spirits407XX 10019.951995
0177 Glenda JohnsonNorth Minimart Inc.777510.552.5
0177 Glenda JohnsonEast Barco Corporation73321000020000
1843 George SmithNorth Minimart Inc.188S 3519915597

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!