Sentry Page Protection
Exercise (6-9)
Run the code in the yellow box before working on this exercise:
Run the code in the yellow box before working on this exercise:
The PRODUCT data set contains a list of UPC (Universal Product Code) barcode.
The UPC-A is the most common form of barcode used in North America.
It consists of 12 numerical digits.
Below is an image of the barcode:
The first digit of the barcode represents the product type:
- 2 = Meats, Fruits, Vegetables
- 3 = Drug
- 4 = Loyalty Card
- 5, 9 = Coupon
- 0, 1, 6, 7, 8 = General
Write a SAS program to classify the products based on the first digit of the UPC barcode.
Create any data set or variable in needed.