Search the site...

SASCRUNCH TRAINING
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
  • Home
  • Member's Area
  • How to Start
  • SAS Interface
  • Creating a Data Set
  • Practical SAS Training Course
  • SAS Certified Specialist Training Program
  • Proc SQL Course
  • Introduction to Time Series Analysis
  • SAS Project Training Course
  • Full Training / Membership
  • Sign up
  • About us
  • Contact us
Sentry Page Protection
Please Wait...
Exercise (6-9)

Run the code in the yellow box before working on this exercise:
Picture

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:
Picture

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.


Next
Already a member? Go to member's area.